public void TestMethod1()
        {
            var mockService = new Mock <MyDBModel>();

            var controller = new WebapiController();
            var values     = controller.GetAll();

            Assert.AreEqual(values.ElementAt(2).Name, "wake");
        }
        public void TestMethod34()
        {
            var mockService = new Mock <MyDBModel>();

            mockService.Setup(service => service.isComplete).Returns(false);
            var controller = new WebapiController();
            var obj        = controller.GetByID("1");

            Assert.AreEqual(obj.GetType(), "wake");
        }
        public void TestMethod2()
        {
            var mockService = new Mock <MyDBModel>();

            mockService.Setup(service => service.id).Returns(2);
            var controller = new WebapiController();
            var values     = controller.GetAll();

            Assert.AreEqual(values.ElementAt(2).isComplete, false);
        }