public void init() { user = new dejamobile_takehome_sdk.Models.UserModel(UsersUnitTests.testUser, UsersUnitTests.testUserPassword); Task <TaskResult> temp = sdk.CreateUser(user); temp = sdk.ConnectUser(user); TaskResult result = temp.Result; }
public void LogTestUser() { //arrange CreateUser(); user = new dejamobile_takehome_sdk.Models.UserModel(UsersUnitTests.testUser, UsersUnitTests.testUserPassword); //act Task <TaskResult> temp = sdk.ConnectUser(user); TaskResult result = temp.Result; //ASSERTS Assert.IsTrue(result.result); //ensure user is properly connected Assert.IsTrue(sdk.getStatus()); }