Skip to content

Commit 0bd08af

Browse files
Merge pull request #1377 from TransactionProcessing/task/#1033_update_shared_nugets
update shared nugets
2 parents 0ec46b6 + 82618f0 commit 0bd08af

File tree

45 files changed

+573
-545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+573
-545
lines changed

TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
1818
<PackageReference Include="Shouldly" Version="4.3.0" />
1919
<PackageReference Include="System.ServiceModel.Federation" Version="8.1.2" />
2020
<PackageReference Include="System.ServiceModel.Http" Version="8.1.2" />
2121
<PackageReference Include="System.ServiceModel.NetTcp" Version="8.1.2" />
2222
<PackageReference Include="xunit" Version="2.9.3" />
23-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.0">
23+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.12.0" />
28-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.12.0" />
27+
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.14.0" />
28+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.14.0" />
2929
</ItemGroup>
3030

3131
<ItemGroup>

TransactionProcessor.Aggregates/ContractAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ public ContractAggregate(){
225225
}
226226

227227
private ContractAggregate(Guid aggregateId){
228-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
228+
if (aggregateId == Guid.Empty)
229+
throw new ArgumentNullException(nameof(aggregateId));
229230

230231
this.AggregateId = aggregateId;
231232
this.Products = new List<Product>();

TransactionProcessor.Aggregates/EstateAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ public EstateAggregate(){
178178
}
179179

180180
private EstateAggregate(Guid aggregateId){
181-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
181+
if (aggregateId == Guid.Empty)
182+
throw new ArgumentNullException(nameof(aggregateId));
182183

183184
this.AggregateId = aggregateId;
184185
this.Operators = new Dictionary<Guid, TransactionProcessor.Models.Estate.Operator>();

TransactionProcessor.Aggregates/FloatActivityAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public FloatActivityAggregate()
8282

8383
private FloatActivityAggregate(Guid aggregateId)
8484
{
85-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
85+
if (aggregateId == Guid.Empty)
86+
throw new ArgumentNullException(nameof(aggregateId));
8687

8788
this.AggregateId = aggregateId;
8889
this.Credits = new List<Guid>();

TransactionProcessor.Aggregates/FloatAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ public FloatAggregate()
117117

118118
private FloatAggregate(Guid aggregateId)
119119
{
120-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
120+
if (aggregateId == Guid.Empty)
121+
throw new ArgumentNullException(nameof(aggregateId));
121122

122123
this.AggregateId = aggregateId;
123124
this.Credits = new List<(DateTime creditPurchasedDate, Decimal amount, Decimal costPrice)>();

TransactionProcessor.Aggregates/MerchantAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,8 @@ public MerchantAggregate()
892892
/// <param name="aggregateId">The aggregate identifier.</param>
893893
private MerchantAggregate(Guid aggregateId)
894894
{
895-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
895+
if (aggregateId == Guid.Empty)
896+
throw new ArgumentNullException(nameof(aggregateId));
896897

897898
this.AggregateId = aggregateId;
898899
this.Addresses = new Dictionary<Guid, Address>();

TransactionProcessor.Aggregates/MerchantDepositListAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ public MerchantDepositListAggregate(){
211211
}
212212

213213
private MerchantDepositListAggregate(Guid aggregateId){
214-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
214+
if (aggregateId == Guid.Empty)
215+
throw new ArgumentNullException(nameof(aggregateId));
215216

216217
this.AggregateId = aggregateId;
217218
this.Deposits = new List<Models.Deposit>();

TransactionProcessor.Aggregates/MerchantStatementAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public MerchantStatementAggregate()
5252

5353
private MerchantStatementAggregate(Guid aggregateId)
5454
{
55-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
55+
if (aggregateId == Guid.Empty)
56+
throw new ArgumentNullException(nameof(aggregateId));
5657

5758
this.AggregateId = aggregateId;
5859
this.ActivityDates = new();

TransactionProcessor.Aggregates/MerchantStatementForDateAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ public MerchantStatementForDateAggregate()
254254

255255
private MerchantStatementForDateAggregate(Guid aggregateId)
256256
{
257-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
257+
if (aggregateId == Guid.Empty)
258+
throw new ArgumentNullException(nameof(aggregateId));
258259

259260
this.AggregateId = aggregateId;
260261
this.Transactions = new List<Transaction>();

TransactionProcessor.Aggregates/OperatorAggregate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public OperatorAggregate()
111111

112112
private OperatorAggregate(Guid aggregateId)
113113
{
114-
Guard.ThrowIfInvalidGuid(aggregateId, "Aggregate Id cannot be an Empty Guid");
114+
if (aggregateId == Guid.Empty)
115+
throw new ArgumentNullException(nameof(aggregateId));
115116

116117
this.AggregateId = aggregateId;
117118
}

0 commit comments

Comments
 (0)