Esempio n. 1
0
        public void CreateMailMessageTest()
        {
            //Arrange
            var mailClientSettings = new MailClientSettings();
            var factory = new SmtpEmailFactory(mailClientSettings);

            //Actl
            var mailMessage = factory.CreateEmailBuilder();

            //Assert
            Assert.IsInstanceOfType(mailMessage,typeof(MailMessageBuilder));
        }
Esempio n. 2
0
        public void CreateMailClientTest()
        {
            //Arrange
            var mailClientSettings = new MailClientSettings()
            {
                Host = "host",
                UserName = "******",
                Password = "******",
                Port = 587,
                Timeout = 20000
            };
            var factory = new SmtpEmailFactory(mailClientSettings);

            //Act
            var mailClient = factory.CreateMailClient();

            //Assert
            Assert.IsInstanceOfType(mailClient, typeof(SmtpClientWrapper));
        }