示例#1
0
        public void Build()
        {
            var uut = new PageUrlBuilder <Uom>(Key, Lookup, PageSize);
            var url = uut.Build(null);

            Assert.AreEqual($"http://qtb3.com/uom?searchText=&skip={Skip}&take={PageSize}", url);
        }
示例#2
0
        public void Build_Filter()
        {
            var filter = "zzz";
            var uut    = new PageUrlBuilder <Uom>(Key, Lookup, PageSize);
            var url    = uut.Build(filter);

            Assert.AreEqual($"http://qtb3.com/uom?searchText={filter}&skip={Skip}&take={PageSize}", url);
        }
示例#3
0
 public void TestInitialize()
 {
     PageUrlBuilder.RegisterRootNamespace("Devshed.Web");
 }