示例#1
0
文件: UrlTest.cs 项目: MiruFx/Miru
        public void Should_ignore_dictionary_properties()
        {
            var request = new ProductsEdit.Command()
            {
                Id           = 1,
                ShouldIgnore = true
            };

            UrlLookup
            .For(request)
            .ShouldNotContain("ShouldIgnore");
        }
示例#2
0
        public void Build_full_url()
        {
            var request = new ProductsEdit.Command
            {
                Id        = 10,
                Name      = "iPhone 5S",
                ReturnUrl = "/Products"
            };

            UrlLookup
            .FullFor(request)
            .ShouldBe("https://mirufx.github.io/Products/Edit/10");
        }
示例#3
0
        public void If_request_is_command_ignore_querystring()
        {
            var request = new ProductsEdit.Command
            {
                Id        = 10,
                Name      = "iPhone 5S",
                ReturnUrl = "/Products"
            };

            UrlLookup
            .For(request)
            .ShouldBe("/Products/Edit/10");
        }