Esempio n. 1
0
        public static void AreEqual(MailApiKeyEntity source, MailApiKey target, bool checkPassword = true)
        {
            Assert.AreEqual(source.Id, target.Id);
            Assert.AreEqual(source.Enabled, target.Enabled);
            Assert.AreEqual(source.CreationDateUtc, target.CreationDateUtc);
            Assert.AreEqual(source.MailAccountId, target.MailAccountId);
            Assert.AreEqual(source.MailSendCount, target.MailSendCount);
            Assert.AreEqual(source.ApiKey, target.ApiKey);

            RnAssert.AreEqual(source.MailAccount, target.MailAccount, checkPassword);
        }
Esempio n. 2
0
        public static void AreEqual(MailAccountEntity source, MailAccount target, bool checkPassword = true)
        {
            Assert.AreEqual(source.Id, target.Id);
            Assert.AreEqual(source.Enabled, target.Enabled);
            Assert.AreEqual(source.CreationDateUtc, target.CreationDateUtc);
            Assert.AreEqual(source.UserId, target.UserId);
            Assert.AreEqual(source.SmtpUsername, target.SmtpUsername);
            Assert.AreEqual(source.SmtpHost, target.SmtpHost);
            Assert.AreEqual(source.SmtpPort, target.SmtpPort);
            Assert.AreEqual(source.EnableSsl, target.EnableSsl);
            Assert.AreEqual(source.FromAddress, target.FromAddress);
            Assert.AreEqual(source.FromDisplayName, target.FromDisplayName);
            Assert.AreEqual(source.RedirectToDisk, target.RedirectToDisk);

            if (checkPassword)
            {
                Assert.AreEqual(source.SmtpPassword, target.SmtpPassword);
            }

            RnAssert.AreEqual(source.User, target.User, checkPassword);
        }