Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Oct 11, 2024
1 parent d07643e commit 334a4d3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.
8 changes: 2 additions & 6 deletions src/MediatR.CommandQuery/Commands/EntityCreateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ namespace MediatR.CommandQuery.Commands;
public record EntityCreateCommand<TCreateModel, TReadModel>
: EntityModelCommand<TCreateModel, TReadModel>
{
public EntityCreateCommand(ClaimsPrincipal? principal, [NotNull] TCreateModel model) : base(principal, model)
public EntityCreateCommand(ClaimsPrincipal? principal, [NotNull] TCreateModel model)
: base(principal, model)
{
}

public override string ToString()
{
return $"Entity Create Command; Model: {typeof(TCreateModel).Name}; {base.ToString()}";
}
}
6 changes: 0 additions & 6 deletions src/MediatR.CommandQuery/Commands/EntityDeleteCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@ public record EntityDeleteCommand<TKey, TReadModel>
public EntityDeleteCommand(ClaimsPrincipal? principal, [NotNull] TKey id) : base(principal, id)
{
}

public override string ToString()
{
return $"Entity Delete Command; Model: {typeof(TReadModel).Name}; {base.ToString()}";
}

}
6 changes: 0 additions & 6 deletions src/MediatR.CommandQuery/Commands/EntityIdentifierCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,4 @@ protected EntityIdentifierCommand(ClaimsPrincipal? principal, [NotNull] TKey id)

[NotNull]
public TKey Id { get; }

public override string ToString()
{
return $"Id: {Id}; {base.ToString()}";
}

}
5 changes: 0 additions & 5 deletions src/MediatR.CommandQuery/Commands/EntityUpdateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ public EntityUpdateCommand(ClaimsPrincipal? principal, [NotNull] TKey id, TUpdat

[NotNull]
public TKey Id { get; }

public override string ToString()
{
return $"Entity Update Command; Model: {typeof(TUpdateModel).Name}; Id: {Id}; {base.ToString()}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void EntityCreateCommandSerialize()
json.Should().NotBeNullOrEmpty();


var deserializeCommand = JsonSerializer.Deserialize<EntityCreateCommand<AuditCreateModel, AuditReadModel>>(json);
var deserializeCommand = JsonSerializer.Deserialize<EntityCreateCommand<AuditCreateModel, AuditReadModel>>(json, options);
deserializeCommand.Should().NotBeNull();
}

Expand Down

0 comments on commit 334a4d3

Please sign in to comment.