// GET api/values/5
        public Admin Get(int id)
        {
            DynamicVendor data = new DynamicVendor();

            return(data.GetAdmin(id));



            // return "value";
        }
示例#2
0
        public void TestMethod2()
        {
            //A  - Arrange
            DynamicVendor data = new DynamicVendor();

            //A - Act
            Admin admin = new Admin();

            admin.Name = "Test from UT -VE";
            int bc = data.GetAdmin().Count;

            data.Add(admin);
            int fc = data.GetAdmin().Count;

            //A  -Assert
            Assert.AreEqual(bc, fc);
        }
        public IEnumerable <Admin> Get()
        {
            DynamicVendor data = new DynamicVendor();

            return(data.GetAdmin());
        }