示例#1
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);
        }
        // GET api/values/5
        public Admin Get(int id)
        {
            DynamicVendor data = new DynamicVendor();

            return(data.GetAdmin(id));



            // return "value";
        }
        public IEnumerable <Admin> Get()
        {
            DynamicVendor data = new DynamicVendor();

            return(data.GetAdmin());
        }