Пример #1
0
 public void TestInitialize()
 {
     _context  = new DbTestContext(Settings.Default.MainConnectionString);
     _fixture  = new Fixture();
     _now      = _fixture.Create <DateTimeOffset>();
     _executor = new SqlProcedureExecutor(Settings.Default.MainConnectionString);
     DateTimeProvider.SetProvider(new DateTimeProviderStub(_now));
     _awbs = new AwbRepository(_context.Connection);
     _applicationEditor = new ApplicationEditor(_context.Connection, _executor, TestConstants.DefaultStateId);
 }
Пример #2
0
        private static DefaultEmailingProcessor GetDefaultEmailingProcessor(
            int partitionId,
            ISqlProcedureExecutor executor,
            IMessageBuilder messageBuilder)
        {
            var emails     = new EmailMessageRepository(executor);
            var mailSender = new DbMailSender(partitionId, emails, new Serializer());

            return(new DefaultEmailingProcessor(mailSender, messageBuilder));
        }
Пример #3
0
		public void TestInitialize()
		{
			_context = new DbTestContext(Settings.Default.MainConnectionString);
			_fixture = new Fixture();
			_now = _fixture.Create<DateTimeOffset>();
			_executor = new SqlProcedureExecutor(Settings.Default.MainConnectionString);
			DateTimeProvider.SetProvider(new DateTimeProviderStub(_now));
			_awbs = new AwbRepository(_context.Connection);
			_applicationEditor = new ApplicationEditor(_context.Connection, _executor, TestConstants.DefaultStateId);
		}
Пример #4
0
		public StateRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #5
0
		public EventEmailRecipient(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #6
0
 public AwbFileRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #7
0
 public StateRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #8
0
		public AwbFileRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #9
0
 public EventEmailRecipient(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #10
0
		public EmailMessageRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #11
0
		public ApplicationEditor(IDbConnection connection, ISqlProcedureExecutor executor, long defaultStateId)
		{
			_executor = executor;
			_defaultStateId = defaultStateId;
			_context = new AlicargoDataContext(connection);
		}
Пример #12
0
		public ClientRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #13
0
 public EmailMessageRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #14
0
 public ApplicationEditor(IDbConnection connection, ISqlProcedureExecutor executor, long defaultStateId)
 {
     _executor       = executor;
     _defaultStateId = defaultStateId;
     _context        = new TrackerDataContext(connection);
 }
Пример #15
0
		public ApplicationFileRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #16
0
 public BillRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #17
0
 public CountryRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #18
0
 public ApplicationFileRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #19
0
		private static DefaultEmailingProcessor GetDefaultEmailingProcessor(
			int partitionId,
			ISqlProcedureExecutor executor,
			IMessageBuilder messageBuilder)
		{
			var emails = new EmailMessageRepository(executor);
			var mailSender = new DbMailSender(partitionId, emails, new Serializer());

			return new DefaultEmailingProcessor(mailSender, messageBuilder);
		}
Пример #20
0
 public SenderRepository(IPasswordConverter converter, ISqlProcedureExecutor executor)
 {
     _converter = converter;
     _executor  = executor;
 }
Пример #21
0
		public TransitRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #22
0
		public CarrierRepository(IPasswordConverter converter, ISqlProcedureExecutor executor)
		{
			_converter = converter;
			_executor = executor;
		}
Пример #23
0
 public SettingRepository(ISqlProcedureExecutor executor, ISerializer serializer)
 {
     _executor   = executor;
     _serializer = serializer;
 }
Пример #24
0
 public ClientRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #25
0
		public CountryRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #26
0
 public CalculationRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #27
0
 public TransitRepository(ISqlProcedureExecutor executor)
 {
     _executor = executor;
 }
Пример #28
0
		public CalculationRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}
Пример #29
0
		public BillRepository(ISqlProcedureExecutor executor)
		{
			_executor = executor;
		}