示例#1
0
        public void testUpdateModelAsync()
        {
            User expectedUser = new User("kyle1776", "123", "Kyle", "Riccardi", "*****@*****.**", "5555555555");

            expectedUser.userId = 42;

            bool expectedResult = true;

            Assert.AreEqual(expectedResult, restAPICRUDService.updateModelAsync(expectedUser).Result);
        }
示例#2
0
        public void testUpdateModelAsync()
        {
            User expectedUser = new User("User", "Male", "Adrian", "Gallant", "10/01/1999", "*****@*****.**", "adriang99", "password");

            expectedUser.userId = 5;

            bool expectedResult = true;

            Assert.AreEqual(expectedResult, restAPICRUDService.updateModelAsync(expectedUser).Result);
        }
示例#3
0
 public async Task <bool> updateModel(T modelObject)
 {
     return(await RestAPICRUDService.updateModelAsync(modelObject));
 }