public void AoInstanciarSeInvalidoDeveRetornarNotification() { var command = new UpdateIngredienteCategoriaCommand(); Assert.False(command.IsValid()); Assert.True(command.ValidationResult.Errors.Any()); }
public void AoInstanciarSeValidoNaoDeveRetornarNotification() { var command = new UpdateIngredienteCategoriaCommand { Id = Guid.NewGuid(), Descricao = "Categoria" }; Assert.True(command.IsValid()); Assert.False(command.ValidationResult.Errors.Any()); }