Exemplo n.º 1
0
        public void DeleteUserDetailTest()
        {
            int prevCount = ApiLists.GetCount();

            ApiLists.DeleteUserDetail(100);
            int currCount = ApiLists.GetCount();

            Assert.AreEqual(prevCount, currCount + 1);
        }
Exemplo n.º 2
0
        public void InsertUserDetailTest()
        {
            int        prevCount = ApiLists.GetCount();
            UserDetail data      = new UserDetail
            {
                UserId    = 100,
                UserName  = "******",
                FirstName = "will",
                LastName  = "smith",
                Gender    = "male",
                Password  = "******"
            };

            ApiLists.InsertUserDetail(data);
            int currCount = ApiLists.GetCount();

            Assert.AreEqual(prevCount + 1, currCount);
        }