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 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); }