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));
        }
示例#2
0
        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));
        }
示例#3
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.");
        }
示例#4
0
        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));
        }