private static IMessageBuilder GetCommonMessageBuilder( IDbConnection connection, string mainConnectionString, string filesConnectionString, ILocalizedDataHelper localizedDataHelper, IRecipientsFacade recipientsFacade) { var executor = new SqlProcedureExecutor(mainConnectionString); var templateRepository = new TemplateRepository(executor); var textBuilder = new TextBuilder(); var templateRepositoryWrapper = new TemplateRepositoryHelper(templateRepository); var filesFacade = GetFilesFacade(connection, mainConnectionString, filesConnectionString); return(new CommonEventMessageBuilder( EmailsHelper.DefaultFrom, recipientsFacade, new Serializer(), textBuilder, localizedDataHelper, templateRepositoryWrapper, filesFacade)); }
public void TestInitialize() { _fixture = new Fixture(); _builder = new TextBuilder(); }
private static IMessageBuilder GetCommonMessageBuilder( IDbConnection connection, string mainConnectionString, string filesConnectionString, ILocalizedDataHelper localizedDataHelper, IRecipientsFacade recipientsFacade) { var executor = new SqlProcedureExecutor(mainConnectionString); var templateRepository = new TemplateRepository(executor); var textBuilder = new TextBuilder(); var templateRepositoryWrapper = new TemplateRepositoryHelper(templateRepository); var filesFacade = GetFilesFacade(connection, mainConnectionString, filesConnectionString); return new CommonEventMessageBuilder( EmailsHelper.DefaultFrom, recipientsFacade, new Serializer(), textBuilder, localizedDataHelper, templateRepositoryWrapper, filesFacade); }