public async Task And_Not_Match_Regex_Then_Not_Valid( GetEpaoQuery query, GetEpaoQueryValidator validator) { var validationResult = await validator.ValidateAsync(query); validationResult.IsValid().Should().BeFalse(); validationResult.ValidationDictionary.Should().ContainKey("epaoId"); }
public async Task Match_Regex_Cases( string epaoId, bool isValid, GetEpaoQuery query, GetEpaoQueryValidator validator) { query.EpaoId = epaoId; var validationResult = await validator.ValidateAsync(query); validationResult.IsValid().Should().Be(isValid); }