Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MinimalClean.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Ardalis.MinimalClean.Template</id>
<title>ASP.NET Minimal Clean Architecture Solution</title>
<version>1.0.0</version>
<version>1.0.1</version>
<authors>Steve Smith</authors>
<description>
A simplified Clean Architecture template using vertical slice architecture in a single project.
Expand All @@ -21,6 +21,7 @@
* FastEndpoints for REPR pattern
* Pragmatic DDD with simplified patterns
* Aspire support
* 1.0.1 fixes a minor bug
</releaseNotes>
<packageTypes>
<packageType name="Template" />
Expand Down
2 changes: 1 addition & 1 deletion MinimalClean/MinimalClean.Architecture.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Platform Name="x86" />
</Configurations>
<Folder Name="/Solution Items/">
<File Path="../MinimalClean.nuspec" />
<File Path=".editorconfig" />
<File Path="CleanArchitecture.nuspec" />
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
</Folder>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Ardalis.GuardClauses;
using Ardalis.GuardClauses;

namespace MinimalClean.Architecture.Web.Domain.ProductAggregate;

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

public Product(ProductId id, string name, decimal unitPrice)
{
Guard.Against.Equal(id, ProductId.New, nameof(id),
Guard.Against.InvalidInput(id, nameof(id), (id) => id == ProductId.New,
"Use Product.Create() to create new products instead of passing ProductId.New to the constructor.");
Id = id;
Name = name;
Expand Down
Loading