コード例 #1
0
 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);
        }
コード例 #3
0
 public PullJob(IHandleFetchingApiPullConfiguration fetch, IHandleExecutingApiConfiguration execute)
 {
     _fetch = fetch;
     _execute = execute;
 }
コード例 #4
0
 public PullJob(IHandleFetchingApiPullConfiguration fetch, IHandleExecutingApiConfiguration execute)
 {
     _log = LogManager.GetLogger(GetType());
     _fetch = fetch;
     _execute = execute;
 }
コード例 #5
0
 public PushJob(IHandleFetchingApiPushConfiguration handler, IHandleExecutingApiConfiguration execute)
 {
     _log = LogManager.GetLogger(GetType());
     _fetch = handler;
     _execute = execute;
 }
コード例 #6
0
 public when_pushing_hourly_api_job()
 {
     _fetch = new FakeFetchingApiPushConfigurationHandler();
     _handler = new FakeHandleExecutingApiConfiguration();
 }