コード例 #1
0
ファイル: CompositionJobsHelper.cs プロジェクト: UHgEHEP/test
        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));
        }
コード例 #2
0
ファイル: TextBulderTests.cs プロジェクト: UHgEHEP/test
		public void TestInitialize()
		{
			_fixture = new Fixture();
			_builder = new TextBuilder();
		}
コード例 #3
0
ファイル: CompositionJobsHelper.cs プロジェクト: UHgEHEP/test
		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);
		}