Пример #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();
        }