Beispiel #1
0
        public void GetAccountInformation_AuthenticatedUserV1_Succeeds(string email, string password)
        {
            this.context.Client.Login(email, password);

            var authenticatedTestContext = new AuthenticatedTestContext();
            var protectedNodes           = authenticatedTestContext.ProtectedNodes;

            this.SanitizeStorage(protectedNodes);

            IAccountInformation accountInformation = this.context.Client.GetAccountInformation();

            Assert.NotNull(accountInformation);
            Assert.Equal(53687091200, accountInformation.TotalQuota);
            Assert.Equal(1046530 + AuthenticatedTestContext.FileSize + AuthenticatedTestContext.SubFolderFileSize, accountInformation.UsedQuota); // 1046530 is from incoming shares
        }
Beispiel #2
0
        public void GetAccountInformation_AuthenticatedUser_Succeeds(string email, string password)
        {
            this.context.Client.Login(email, password);

            var authenticatedTestContext = new AuthenticatedTestContext();
            var protectedNodes           = authenticatedTestContext.ProtectedNodes;

            this.SanitizeStorage(protectedNodes);

            IAccountInformation accountInformation = this.context.Client.GetAccountInformation();

            Assert.NotNull(accountInformation);
            Assert.Equal(53687091200, accountInformation.TotalQuota);
            Assert.Equal(1569795, accountInformation.UsedQuota);
        }
Beispiel #3
0
 public NodeOperationsAuthenticated(AuthenticatedTestContext context, ITestOutputHelper testOutputHelper)
     : base(context, testOutputHelper)
 {
 }
Beispiel #4
0
 public DownloadUploadAuthenticated(AuthenticatedTestContext context, ITestOutputHelper testOutputHelper)
     : base(context, testOutputHelper)
 {
 }