상속: ApiController
예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }