示例#1
0
        public void DeveRetornarCommandOcorrenciaValido()
        {
            occurrence = DeleteOccurrenceCommandFaker.Gerar();

            var command = occurrence.Generate();

            Assert.True(command.Valid);
        }
示例#2
0
        public void DeveRetornarCommandOcorrenciaGuidInvalido()
        {
            occurrence = DeleteOccurrenceCommandFaker.Gerar();

            var command = occurrence.Generate();

            command.Id = Guid.Empty;

            command.Validate();

            Assert.True(command.Invalid);
        }