Skip to content

Commit d46bf7f

Browse files
update read model nuget
1 parent 13187b3 commit d46bf7f

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

TransactionProcessor.BusinessLogic.Tests/DomainEventHandlers/VoucherDomainEventHandlerTests.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@ public async Task VoucherDomainEventHandler_VoucherIssuedEvent_WithEmailAddress_
7474
context.Transactions.Add(new EstateManagement.Database.Entities.Transaction()
7575
{
7676
TransactionId = TestData.TransactionId,
77-
MerchantReportingId = TestData.MerchantReportingId,
78-
ContractReportingId = TestData.ContractReportingId
77+
MerchantId = TestData.MerchantId,
78+
ContractId = TestData.ContractId
7979
});
8080
context.Contracts.Add(new Contract
8181
{
8282
ContractId = TestData.ContractId,
83-
ContractReportingId = TestData.ContractReportingId,
84-
EstateReportingId = TestData.EstateReportingId,
83+
EstateId = TestData.EstateId,
8584
Description = TestData.OperatorIdentifier
8685
});
8786
await context.SaveChangesAsync(CancellationToken.None);
@@ -124,14 +123,13 @@ public async Task VoucherDomainEventHandler_VoucherIssuedEvent_WithRecipientMobi
124123
context.Transactions.Add(new EstateManagement.Database.Entities.Transaction()
125124
{
126125
TransactionId = TestData.TransactionId,
127-
MerchantReportingId = TestData.MerchantReportingId,
128-
ContractReportingId = TestData.ContractReportingId
126+
MerchantId = TestData.MerchantId,
127+
ContractId = TestData.ContractId
129128
});
130129
context.Contracts.Add(new Contract
131130
{
132131
ContractId = TestData.ContractId,
133-
ContractReportingId = TestData.ContractReportingId,
134-
EstateReportingId = TestData.EstateReportingId,
132+
EstateId = TestData.EstateId,
135133
Description = TestData.OperatorIdentifier
136134
});
137135
await context.SaveChangesAsync(CancellationToken.None);

TransactionProcessor.BusinessLogic/EventHandling/VoucherDomainEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private async Task<String> GetVoucherOperator(Models.Voucher voucherModel,
139139
EstateManagementGenericContext context = await this.DbContextFactory.GetContext(voucherModel.EstateId, ConnectionStringIdentifier, cancellationToken);
140140

141141
Transaction transaction = await context.Transactions.SingleOrDefaultAsync(t => t.TransactionId == voucherModel.TransactionId, cancellationToken);
142-
Contract contract = await context.Contracts.SingleOrDefaultAsync(c => c.ContractReportingId == transaction.ContractReportingId);
142+
Contract contract = await context.Contracts.SingleOrDefaultAsync(c => c.ContractId == transaction.ContractId, cancellationToken);
143143

144144
return contract.Description;
145145
}

TransactionProcessor.BusinessLogic/TransactionProcessor.BusinessLogic.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="EstateManagement.Client" Version="2024.4.3-build103" />
9-
<PackageReference Include="EstateManagement.Database" Version="2024.4.3-build103" />
8+
<PackageReference Include="EstateManagement.Client" Version="2024.6.3-build111" />
9+
<PackageReference Include="EstateManagement.Database" Version="2024.6.3-build111" />
1010
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.3" />
1111
<PackageReference Include="MessagingService.Client" Version="2024.4.2" />
1212
<PackageReference Include="SecurityService.Client" Version="2024.4.2" />

TransactionProcessor.IntegrationTesting.Helpers/TransactionProcessor.IntegrationTesting.Helpers.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="EstateManagement.Client" Version="2024.4.3-build103" />
11-
<PackageReference Include="EstateManagement.IntegrationTesting.Helpers" Version="2024.4.3-build103" />
10+
<PackageReference Include="EstateManagement.Client" Version="2024.6.3-build111" />
11+
<PackageReference Include="EstateManagement.IntegrationTesting.Helpers" Version="2024.6.3-build111" />
1212
<PackageReference Include="Reqnroll" Version="1.0.1" />
1313
</ItemGroup>
1414

TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<ItemGroup>
1010
<PackageReference Include="ClientProxyBase" Version="2024.4.3" />
1111
<PackageReference Include="Ductus.FluentDocker" Version="2.10.59" />
12-
<PackageReference Include="EstateManagement.Client" Version="2024.4.3-build103" />
13-
<PackageReference Include="EstateManagement.IntegrationTesting.Helpers" Version="2024.4.3-build103" />
12+
<PackageReference Include="EstateManagement.Client" Version="2024.6.3-build111" />
13+
<PackageReference Include="EstateManagement.IntegrationTesting.Helpers" Version="2024.6.3-build111" />
1414
<PackageReference Include="EventStoreProjections" Version="2023.12.3" />
1515
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.3" />
1616
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.3" />

TransactionProcessor.ProjectionEngine/TransactionProcessor.ProjectionEngine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="EstateManagement.Estate.DomainEvents" Version="2024.4.3-build99" />
11-
<PackageReference Include="EstateManagement.Merchant.DomainEvents" Version="2024.4.3-build99" />
10+
<PackageReference Include="EstateManagement.Estate.DomainEvents" Version="2024.6.3-build111" />
11+
<PackageReference Include="EstateManagement.Merchant.DomainEvents" Version="2024.6.3-build111" />
1212
<PackageReference Include="FileProcessor.File.DomainEvents" Version="2024.4.3-build56" />
1313
<PackageReference Include="FileProcessor.FileImportLog.DomainEvents" Version="2024.4.3-build56" />
1414

0 commit comments

Comments
 (0)