public void When_getting_a_validator_which_exists() { var source = new UrlValidatorSource(_baseUrl + "Overseer.Tests.Resources.{messageType}.json"); source.For("PersonExactMatch").Single().ShouldBeOfType<JsonSchemaValidator>(); }
public void When_getting_from_a_source_with_multiple_validators() { var source = new UrlValidatorSource(_baseUrl + "Overseer.Tests.Resources.multispec.json"); source.For("PersonExactMatch").Cast<JsonSchemaValidator>().Single().Type.ShouldBe("PersonExactMatch"); source.For("PersonOtherMatch").Cast<JsonSchemaValidator>().Single().Type.ShouldBe("PersonOtherMatch"); }
public void When_getting_a_validator_which_doesnt_exist() { var source = new UrlValidatorSource(_baseUrl + "Overseer.Tests.Resources.{messageType}.json"); source.For("Asdafewweg").ShouldBeEmpty(); }