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); }
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); }
public async Task <bool> updateModel(T modelObject) { return(await RestAPICRUDService.updateModelAsync(modelObject)); }