Example #1
0
        public void TestSetCredentialsForUserThatAlreadyExistsButIsntValidated()
        {
            using (var _server = new UnitTestSkyDoxServer(1344))
            {
                _server.NextResponse.Enqueue(MockResponse.sign_ups_Success);

                DoxApi doxApi = new DoxApi(_apiUrl);
                string user = string.Format(_rootEmail, "unvalidated-personal");
                string password = "******";

                Assert.True(doxApi.SetCredentials(user, password, null));
                Assert.Null(doxApi.Error);
            }
        }