public BackgroundService(TaskQueueManager taskQueueManager, ISmsManager smsManager) { _taskQueueManager = taskQueueManager; _smsManager = smsManager; #warning investigate why CurrentCulture is being changed Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); }
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(); }