Exemplo n.º 1
0
        public virtual void DoubleRemovingSameAddressSameAddress()
        {
            peter_mailbox.AddAlias(peter_alias.LocalPart, peter_alias.Domain, TestContext.ServerFactory);
            peter_mailbox.RemoveAlias(peter_alias.Id);
            peter_mailbox.RemoveAlias(peter_alias.Id);
            Assert.IsFalse(peter_mailbox.Aliases.Contains(peter_alias));
            var mailboxes = server.GetMailboxes(TestContext.ServerFactory);

            Assert.IsTrue(mailboxes.Contains(peter_mailbox));
        }
        public virtual void GetMailboxListFromServerTest()
        {
            var mailboxes = server.GetMailboxes(TestContext.ServerFactory);

            Assert.GreaterOrEqual(mailboxes.Count, 0);
            if (mailboxes.Count > 0)
            {
                var server_info = mailboxes.First().Server;
                Assert.AreEqual(mailboxes.Count(m => m.Server.ConnectionString == server_info.ConnectionString), mailboxes.Count());
            }
        }