public virtual void GetMailboxById() { peter_mailbox = server.CreateMailbox(peter_address.LocalPart, PeterPassword, peter_address.Domain, peter_account, TestContext.ServerFactory); var mailbox_getted_by_id = server.GetMailbox(peter_mailbox.Id, TestContext.ServerFactory); Assert.IsTrue(peter_mailbox.Equals(mailbox_getted_by_id)); }
public virtual void GetMailboxById() { peter_mailbox = server.CreateMailbox(peter_address.LocalPart, PETER_PASSWORD, peter_address.Domain, peter_account, TestContext.ServerFactory); var mailboxGettedById = server.GetMailbox(peter_mailbox.Id, TestContext.ServerFactory); Assert.IsTrue(peter_mailbox.Equals(mailboxGettedById)); }
public virtual void AliasAddAndRemoveSyncronizationWithServerTest() { peter_alias = peter_mailbox.AddAlias(peter_alias.LocalPart, peter_alias.Domain, TestContext.ServerFactory); peter_mailbox = server.GetMailbox(peter_mailbox.Id, TestContext.ServerFactory); Assert.IsTrue(peter_mailbox.Aliases.Contains(peter_alias)); peter_mailbox.RemoveAlias(peter_alias.Id); peter_mailbox = server.GetMailbox(peter_mailbox.Id, TestContext.ServerFactory); Assert.IsFalse(peter_mailbox.Aliases.Contains(peter_alias)); server.DeleteMailbox(peter_mailbox); }
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)); }