Beispiel #1
0
        public void AoInstanciarSeInvalidoDeveRetornarNotification()
        {
            var command = new UpdateIngredienteCategoriaCommand();

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

            Assert.True(command.IsValid());
            Assert.False(command.ValidationResult.Errors.Any());
        }