Exemple #1
0
        public virtual void UpdateMailbox()
        {
            peter_mailbox = server.CreateMailbox(peter_account.TeamlabAccount.Name, peter_address.LocalPart,
                                                 PETER_PASSWORD, peter_address.Domain, peter_account, TestContext.ServerFactory);
            const string new_name = "Peter_New";

            server.UpdateMailbox(peter_mailbox, new_name, TestContext.ServerFactory);

            var newMailbox = server.GetMailbox(peter_mailbox.Id, TestContext.ServerFactory);

            Assert.IsFalse(peter_mailbox.Equals(newMailbox), "Mailbox wasn't updated.");
            Assert.IsTrue(newMailbox.Name.Equals(new_name), "Mailbox wasn't updated.");
        }