예제 #1
0
 public void Test()
 {
     var ctrl = new YourController();
     ctrl.Show(2);
     dynamic row = ctrl.GetValues();
     Assert.AreEqual(2, row.Test);
 }
예제 #2
0
        public void TestAdd()
        {
            var ctrl = new YourController();
            var r1   = ctrl.UrlTo <YourController>(p => p.Add(5 * 8, 13));

            Assert.AreEqual("http://dbentry.codeplex.com/your/add/40/13", r1.ToString());
        }
예제 #3
0
        public void TestToController()
        {
            var ctrl = new YourController();
            var r1   = ctrl.UrlTo <YourController>();

            Assert.AreEqual("http://dbentry.codeplex.com/your", r1.ToString());
        }
예제 #4
0
        public void TestAddFirst()
        {
            var ctrl = new YourController();
            var r1   = ctrl.UrlTo <YourController>(p => p.Add(12, null));

            Assert.AreEqual("http://dbentry.codeplex.com/your/add/12", r1.ToString());
        }
예제 #5
0
        public void TestUrlToNull()
        {
            var ctrl = new YourController();
            var r1   = ctrl.UrlTo <YourController>(p => p.List(null));

            Assert.AreEqual("http://dbentry.codeplex.com/your/list", r1.ToString());
        }
예제 #6
0
 public void TestUrlTo()
 {
     var ctrl = new YourController();
     var r1 = ctrl.UrlTo<ThatController>(p => p.Show());
     Assert.AreEqual("http://dbentry.codeplex.com/that/show", r1.ToString());
     var r2 = ctrl.UrlTo<YourController>(p => p.Show(2));
     Assert.AreEqual("http://dbentry.codeplex.com/your/show/2", r2.ToString());
 }
예제 #7
0
        public void Test()
        {
            var ctrl = new YourController();

            ctrl.Show(2);
            dynamic row = ctrl.GetValues();

            Assert.AreEqual(2, row.Test);
        }
예제 #8
0
        public void TestUrlTo()
        {
            var ctrl = new YourController();
            var r1   = ctrl.UrlTo <ThatController>(p => p.Show());

            Assert.AreEqual("http://dbentry.codeplex.com/that/show", r1.ToString());
            var r2 = ctrl.UrlTo <YourController>(p => p.Show(2));

            Assert.AreEqual("http://dbentry.codeplex.com/your/show/2", r2.ToString());
        }
예제 #9
0
 public void TestUrlToNull()
 {
     var ctrl = new YourController();
     var r1 = ctrl.UrlTo<YourController>(p => p.List(null));
     Assert.AreEqual("http://dbentry.codeplex.com/your/list", r1.ToString());
 }
예제 #10
0
 public void TestToController()
 {
     var ctrl = new YourController();
     var r1 = ctrl.UrlTo<YourController>();
     Assert.AreEqual("http://dbentry.codeplex.com/your", r1.ToString());
 }
예제 #11
0
 public void TestAddSecend()
 {
     var ctrl = new YourController();
     ctrl.UrlTo<YourController>(p => p.Add(null, 13));
 }
예제 #12
0
 public void TestAddFirst()
 {
     var ctrl = new YourController();
     var r1 = ctrl.UrlTo<YourController>(p => p.Add(12, null));
     Assert.AreEqual("http://dbentry.codeplex.com/your/add/12", r1.ToString());
 }
예제 #13
0
 public void TestAdd()
 {
     var ctrl = new YourController();
     var r1 = ctrl.UrlTo<YourController>(p => p.Add(5 * 8, 13));
     Assert.AreEqual("http://dbentry.codeplex.com/your/add/40/13", r1.ToString());
 }
예제 #14
0
        public void TestAddSecend()
        {
            var ctrl = new YourController();

            ctrl.UrlTo <YourController>(p => p.Add(null, 13));
        }