public virtual void DeleteGroupsWithDomain() { var account = TestContext.GetMailAccount("login", _peterDomainName); var mailbox = server.CreateMailbox(PETER_LOGIN, PETER_PASSWORD, peter_domain, account, TestContext.ServerFactory); var mailgroup = server.CreateMailGroup(GROUP_LOGIN, peter_domain, new List <int> { mailbox.Address.Id }, TestContext.ServerFactory); server.DeleteWebDomain(peter_domain, TestContext.ServerFactory); Assert.IsNull(server.GetMailGroup(mailgroup.Id, TestContext.ServerFactory)); Assert.IsNull(server.GetMailbox(mailbox.Id, TestContext.ServerFactory)); }
public void Init() { server = TestContext.CreateServer(); peter_domain = server.CreateWebDomain(_peterDomainName, IS_VERIFIED, TestContext.ServerFactory); peter_mail_group_address = TestContext.CreateRandomMailAddress(peter_domain); var peterMailboxAddress = TestContext.CreateRandomMailAddress(peter_domain); var peterAccount = TestContext.GetMailAccount(peterMailboxAddress.LocalPart, _peterDomainName); peter_mailbox = server.CreateMailbox(peterAccount.TeamlabAccount.Name, peterMailboxAddress.LocalPart, PETER_PASSWORD, peterMailboxAddress.Domain, peterAccount, TestContext.ServerFactory); peter_mail_group = server.CreateMailGroup(peter_mail_group_address.LocalPart, peter_mail_group_address.Domain, new List <int> { peter_mailbox.Address.Id }, TestContext.ServerFactory); }
public void Init() { server = TestContext.CreateServer(); peter_domain = server.CreateWebDomain(_peterDomainName, _isVerified, TestContext.ServerFactory); peter_mail_group_address = TestContext.CreateRandomMailAddress(peter_domain); var peter_mailbox_address = TestContext.CreateRandomMailAddress(peter_domain); var peter_account = TestContext.GetMailAccount(peter_mailbox_address.LocalPart, _peterDomainName); peter_mailbox = server.CreateMailbox(peter_mailbox_address.LocalPart, PeterPassword, peter_mailbox_address.Domain, peter_account, TestContext.ServerFactory); peter_mail_group = server.CreateMailGroup(peter_mail_group_address.LocalPart, peter_mail_group_address.Domain, new List <int> { peter_mailbox.Address.Id }, TestContext.ServerFactory); }
public virtual void CreateMailGroupNullName() { server.CreateMailGroup(null, peter_mail_group_address.Domain, new List <int> { peter_mailbox.Address.Id }, TestContext.ServerFactory); }