public void should_validate_location_with_valid_uri() { var c = new ValidatorController(); var result = c.Post(new ValidatorInputModel { Value = "http://example.com/nice/url" }); result.Valid.Should().BeTrue(); }
public void should_not_validate_location_with_invalid_uri() { var c = new ValidatorController(); var result = c.Post(new ValidatorInputModel { Value = "not/a/url" }); result.Valid.Should().BeFalse(); }