Esempio n. 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);
        }
Esempio n. 2
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);
        }