public void SetUp()
        {
            _emailTemplateRetrieved = String.Format(EmailContentTemplate,
                                                    "{" + FirstKey + "}",
                                                    "{" + SecondKey + "}");

            _wrapperMock = new Mock<IReadFileWrapper>();
            _wrapperMock
                .Setup(it => it.Read(It.IsAny<string>(), It.IsAny<Encoding>()))
                .Returns(_emailTemplateRetrieved);

            _builder = new ContentTemplateBuilder(_wrapperMock.Object);
        }
Exemple #2
0
 public EmailFactory()
 {
     var readFileWrapper = new ReadFileWrapper();
     var contentTemplateBuilder = new ContentTemplateBuilder(readFileWrapper);
     _contentBuilder = new EmailContentBuilder(contentTemplateBuilder);
 }