//Mail
        public PanelResult DomainAddMailBox(DomainMailBox mailBox)
        {
            _args.Clear();

            _args.Add("name", mailBox.Name);
            _args.Add("account", mailBox.Account);
            _args.Add("password", mailBox.Password);
            _args.Add("quota", mailBox.Quota.ToString());
            _args.Add("redirect", mailBox.Redirect);
            _args.Add("remail", mailBox.ReMail);

            ApiResult <DomainOperationsResult> result = ExecuteAction <DomainOperationsResult>(MaestroAction.DomainAddMailBox, Method.POST, _args);

            return(GetPanelResult(result));
        }
Exemple #2
0
 public PanelResult DomainAddMailBox(DomainMailBox mailBox)
 {
     throw new NotImplementedException();
 }
 public PanelResult DomainAddMailBox(DomainMailBox mailBox)
 {
     throw new NotImplementedException();
 }
        public void DomainAddMailBox()
        {
            DomainMailBox mailBox = new DomainMailBox();
            mailBox.Name = "xyz.com";
            mailBox.Account = "info";
            mailBox.Password = "******";
            mailBox.Quota = 5;

            PanelResult result = panel.DomainAddMailBox(mailBox);

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