public AlwaysOnConfigurationConsumer(IHandleFetchingApiPushConfiguration fetchApiPush, IHandleExecutingApiConfiguration execute, IHandleFetchingApiPullConfiguration fetchApiPull) { _fetchApiPush = fetchApiPush; _fetchApiPull = fetchApiPull; _execute = execute; _log = LogManager.GetLogger(GetType()); }
public when_pushing_hourly_integration() { //_entityRepository = new LimRepository(SessionFactory.BuildSession("lim/schedule/database").OpenSession()); _entityRepository = new LimRepository(); _session = FactoryManager.Instance.OpenSession(); _connection = new SqlConnection( ConfigurationManager.ConnectionStrings["lim/schedule/database"].ToString()); _audit = new StoreIntegrationAudit(_entityRepository); _tracking = new TrackIntegration(_entityRepository); _fetch = new HandleFetchingApiPushConfiguration( new FetchPushFactory(_entityRepository, new PushFactory(new InitializePushFactory(_entityRepository), _tracking,_audit)), new CustomFetchPushFactory(_entityRepository, new PushFactory(new InitializePushFactory(_entityRepository), _tracking, _audit)), new ClientFetchPushFactory(_entityRepository, new PushFactory(new InitializePushFactory(_entityRepository), _tracking, _audit))); _execute = new HandleExecutingApiConfiguration(); _setup = new ApiIntegrationTestSetup(_session, _entityRepository); }
public PushJob(IHandleFetchingApiPushConfiguration handler, IHandleExecutingApiConfiguration execute) { _log = LogManager.GetLogger(GetType()); _fetch = handler; _execute = execute; }
public when_pushing_hourly_api_job() { _fetch = new FakeFetchingApiPushConfigurationHandler(); _handler = new FakeHandleExecutingApiConfiguration(); }