Skip to content

Commit 473bb94

Browse files
authored
Small bugfix (#980)
1 parent 3b1b99d commit 473bb94

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

MinimalClean.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>Ardalis.MinimalClean.Template</id>
55
<title>ASP.NET Minimal Clean Architecture Solution</title>
6-
<version>1.0.0</version>
6+
<version>1.0.1</version>
77
<authors>Steve Smith</authors>
88
<description>
99
A simplified Clean Architecture template using vertical slice architecture in a single project.
@@ -21,6 +21,7 @@
2121
* FastEndpoints for REPR pattern
2222
* Pragmatic DDD with simplified patterns
2323
* Aspire support
24+
* 1.0.1 fixes a minor bug
2425
</releaseNotes>
2526
<packageTypes>
2627
<packageType name="Template" />

MinimalClean/MinimalClean.Architecture.slnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<Platform Name="x86" />
66
</Configurations>
77
<Folder Name="/Solution Items/">
8+
<File Path="../MinimalClean.nuspec" />
89
<File Path=".editorconfig" />
9-
<File Path="CleanArchitecture.nuspec" />
1010
<File Path="Directory.Build.props" />
1111
<File Path="Directory.Packages.props" />
1212
</Folder>

MinimalClean/src/MinimalClean.Architecture.Web/Domain/ProductAggregate/Product.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Ardalis.GuardClauses;
1+
using Ardalis.GuardClauses;
22

33
namespace MinimalClean.Architecture.Web.Domain.ProductAggregate;
44

@@ -9,7 +9,7 @@ private Product() { }
99

1010
public Product(ProductId id, string name, decimal unitPrice)
1111
{
12-
Guard.Against.Equal(id, ProductId.New, nameof(id),
12+
Guard.Against.InvalidInput(id, nameof(id), (id) => id == ProductId.New,
1313
"Use Product.Create() to create new products instead of passing ProductId.New to the constructor.");
1414
Id = id;
1515
Name = name;

0 commit comments

Comments
 (0)