Пример #1
0
        public async Task CompleteSpecification(PersonEntity data, bool valid, string message)
        {
            var validation = new CompleteSpecificationValidation();
            var result     = await validation.IsSatisfiedByAsync(data);

            valid.Should().Be(result, message);
        }
        public void CompleteSpecification(PersonEntity data, bool valid, string message)
        {
            CompleteSpecificationValidation validation = new CompleteSpecificationValidation();
            bool result = validation.IsSatisfiedBy(data);

            valid.Should().Be(result, message);
        }
Пример #3
0
        public async Task CompleteSpecificationWithExecute(PersonEntity data, bool valid, string message)
        {
            var validation = new CompleteSpecificationValidation();
            var execute    = new Execute();
            var result     = await validation.IsSatisfiedByAsync(data, execute);

            valid.Should().Be(result, message);
            valid.Should().Be(!execute.HasErro, message);
        }
        public void CompleteSpecificationWithExecute(PersonEntity data, bool valid, string message)
        {
            CompleteSpecificationValidation validation = new CompleteSpecificationValidation();
            Execute execute = new Execute();
            bool result = validation.IsSatisfiedBy(data, execute);

            valid.Should().Be(result, message);
            valid.Should().Be(!execute.HasErro, message);
        }