Skip to content

Commit

Permalink
FIX CR
Browse files Browse the repository at this point in the history
  • Loading branch information
javicha committed Jun 20, 2022
1 parent 87c0d9d commit 3a4bb17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public async Task<TResponse> Handle(TRequest request, CancellationToken cancella
var failures = validationResults.SelectMany(r => r.Errors).Where(f => f != null).ToList();

if (failures.Count != 0)
{
throw new appEx.ValidationException(failures);
}
}

return await next();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace Inventory.Domain.Exceptions
{
[Serializable()]
[Serializable]
public class WrongEmailAddressException : Exception
{
public WrongEmailAddressException() : base() { }
public WrongEmailAddressException() { }
public WrongEmailAddressException(string message) : base(message) { }
public WrongEmailAddressException(string message, System.Exception inner) : base(message, inner) { }
public WrongEmailAddressException(string message, Exception inner) : base(message, inner) { }

// A constructor is needed for serialization when an
// exception propagates from a remoting server to the client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ProductRepositoryTest
{
private readonly InventoryContext dbContext;
private readonly DbContextOptions<InventoryContext> dbContextOptions;
private ProductRepository productRepository;
private readonly ProductRepository productRepository;

public ProductRepositoryTest()
{
Expand Down

0 comments on commit 3a4bb17

Please sign in to comment.