示例#1
0
        public PanelResult ResellerSetLimits(DomainLimit limit)
        {
            _args.Clear();
            _args.Add("username", limit.ResellerName);
            _args.Add("maxdomain", limit.MaxDomain.ToString());
            _args.Add("maxdiskspace", limit.MaxDiskSpace.ToString());
            _args.Add("maxmailbox", limit.MaxMailBox.ToString());
            _args.Add("maxftpuser", limit.MaxFtpUser.ToString());
            _args.Add("maxsubdomain", limit.MaxSubDomain.ToString());
            _args.Add("maxdomainalias", limit.MaxDomainAlias.ToString());
            _args.Add("totalwebtraffic", limit.TotalWebTraffic.ToString());
            _args.Add("totalmailspace", limit.TotalMailSpace.ToString());
            _args.Add("maxwebtraffic", limit.MaxWebTraffic.ToString());
            _args.Add("maxftptraffic", limit.MaxFtpTraffic.ToString());
            _args.Add("maxmailtraffic", limit.MaxMailTraffic.ToString());

            _args.Add("maxmysql", limit.MaxMySql.ToString());
            _args.Add("maxmysqluser", limit.MaxMySqlUser.ToString());
            _args.Add("maxmysqlspace", limit.MaxMySqlSpace.ToString());

            _args.Add("maxmssql", limit.MaxMsSql.ToString());
            _args.Add("maxmssqlspace", limit.MaxMsSqlSpace.ToString());
            _args.Add("maxmssqluser", limit.MaxMsSqlUser.ToString());

            ApiResult <ResellerOperationResult> result = ExecuteAction <ResellerOperationResult>(MaestroAction.ResellerSetLimits, Method.POST, _args);

            return(GetPanelResult(result));
        }
示例#2
0
 public PanelResult DomainSetLimits(DomainLimit limit)
 {
     throw new NotImplementedException();
 }
        public void ResellerSetLimits()
        {
            DomainLimit limit = new DomainLimit();
            limit.ResellerName = "bayi_test";
            limit.MaxDomain = 12;

            PanelResult result = panel.ResellerSetLimits(limit);

            Assert.AreEqual(200, result.Code);
        }
示例#4
0
 public PanelResult ResellerSetLimits(DomainLimit limit)
 {
     throw new NotImplementedException();
 }
        public void Reseller()
        {
            DomainLimit limit = new DomainLimit();
            limit.ResellerName = "bayi_test";
            limit.MaxDomain = 12;

               //// PanelResult result = panel.geti

               // Assert.AreEqual(200, result.Code);
        }