Example #1
0
        public async Task Update_RequestForUpdate_GetNewAccountInfo()
        {
            Account account = new Account();
            await account.SignIn(_login);

            account.Size = null;
            await account.Update();

            Assert.IsNotNull(account.Size);
            Assert.IsTrue(account.Size.TotalSize > 0);
            Assert.IsTrue(account.Size.UsedSize > 0);
            Assert.IsTrue(account.Size.FreeSize > 0);
            Assert.AreEqual(account.Status, ConnectionStatusEnum.Connected);
        }
Example #2
0
        public async Task SignIn_RequestForSingIn_GetAccountInfo()
        {
            Account account = new Account();
            await account.SignIn(_login);

            Assert.IsNotNull(account.Size);
            Assert.IsTrue(account.Size.TotalSize > 0);
            Assert.IsTrue(account.Size.UsedSize > 0);
            Assert.IsTrue(account.Size.FreeSize > 0);
            Assert.IsNotNull(account.Login);
            Assert.IsNotNull(account.Id);
            Assert.IsNotNull(account.Token);
            Assert.AreEqual(account.Status, ConnectionStatusEnum.Connected);
        }