コード例 #1
0
        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;
        }
コード例 #2
0
        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());
        }