public override void BeforeEach()
        {
            base.BeforeEach();

            _playerCommands          = Container.Resolve <PlayerCommands>();
            _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
            _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
        }
 public override void BeforeEach()
 {
     base.BeforeEach();
     _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
     _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
     _serviceBus      = Container.Resolve <FakeServiceBus>();
     _eventRepository = Container.Resolve <FakeEventRepository>();
 }
Example #3
0
        public override void BeforeEach()
        {
            base.BeforeEach();

            _eventRepository         = Container.Resolve <IEventRepository>();
            _emailNotificationWorker = Container.Resolve <EmailNotificationWorker>();
            _smsNotificationWorker   = Container.Resolve <SmsNotificationWorker>();
            _playerTestHelper        = Container.Resolve <PlayerTestHelper>();
        }
Example #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();
        }