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); }
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)); }
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); }
public StateRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public EventEmailRecipient(ISqlProcedureExecutor executor) { _executor = executor; }
public AwbFileRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public EmailMessageRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public ApplicationEditor(IDbConnection connection, ISqlProcedureExecutor executor, long defaultStateId) { _executor = executor; _defaultStateId = defaultStateId; _context = new AlicargoDataContext(connection); }
public ClientRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public ApplicationEditor(IDbConnection connection, ISqlProcedureExecutor executor, long defaultStateId) { _executor = executor; _defaultStateId = defaultStateId; _context = new TrackerDataContext(connection); }
public ApplicationFileRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public BillRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public CountryRepository(ISqlProcedureExecutor executor) { _executor = executor; }
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); }
public SenderRepository(IPasswordConverter converter, ISqlProcedureExecutor executor) { _converter = converter; _executor = executor; }
public TransitRepository(ISqlProcedureExecutor executor) { _executor = executor; }
public CarrierRepository(IPasswordConverter converter, ISqlProcedureExecutor executor) { _converter = converter; _executor = executor; }
public SettingRepository(ISqlProcedureExecutor executor, ISerializer serializer) { _executor = executor; _serializer = serializer; }
public CalculationRepository(ISqlProcedureExecutor executor) { _executor = executor; }