コード例 #1
0
        public override void BeforeEach()
        {
            base.BeforeEach();

            _playerCommands          = Container.Resolve <PlayerCommands>();
            _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
            _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
        }
コード例 #2
0
 public override void BeforeEach()
 {
     base.BeforeEach();
     _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
     _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
     _serviceBus      = Container.Resolve <FakeServiceBus>();
     _eventRepository = Container.Resolve <FakeEventRepository>();
 }
コード例 #3
0
ファイル: ServiceTests.cs プロジェクト: singlag888/aft-regov2
        public override void BeforeEach()
        {
            base.BeforeEach();

            _eventRepository         = Container.Resolve <IEventRepository>();
            _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
            _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
            _playerTestHelper        = Container.Resolve <PlayerTestHelper>();
        }
コード例 #4
0
        public Service()
        {
            _connectionString = ConfigurationManager.ConnectionStrings["GCP"].ConnectionString;
            _logger           = LogManager.GetLogger("Dashboardify.Service");

            _itemContentWorker       = new ItemContentWorker(_connectionString, _logger);
            _emailNotificationWorker = new EmailNotificationWorker(_connectionString, _logger);

            _timer = new Timer(Int32.Parse(ConfigurationManager.AppSettings["interval"]))
            {
                AutoReset = true
            };
            _timer.Elapsed += TimeElapsedEventHandler;

            // Dev
            //DoAction();
        }