示例#1
0
		public BackgroundService(TaskQueueManager taskQueueManager, ISmsManager smsManager)
		{
			_taskQueueManager = taskQueueManager;
			_smsManager = smsManager;

#warning investigate why CurrentCulture is being changed
			Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
		}
示例#2
0
		public void TestInitialize()
		{
			base.InitDbContext();
			var kernel = new StandardKernel();
			kernel.Load<StorageModuleForWCF>();
			kernel.Load<LogicModule>();
			kernel.Load<TaskQueueModule>();

			_repository = new TaskQueueRepository(this.DbFactory);
			_taskQueueManager = kernel.Get<TaskQueueManager>();
			_userRepository = Substitute.For<IUserRepository>();

			ClearTaskQueueContext();
		}