public static void ClassInitialize(TestContext context) { _shortcutRepository = new MockShortcutRepository(_MockRisProContext); _worklistService = new WorklistService(_MockRisProContext, _shortcutRepository, _configurationService); _patientId1 = Guid.NewGuid().ToString(); _patient1 = new Patient { UniqueID = _patientId1.ToString(), LocalName = "LocalName1", EnglishName = "EnglishName1", PatientNo = "001" }; _orderId1 = Guid.NewGuid().ToString(); _order1 = new Order { UniqueID = _orderId1, AccNo = "000001", PatientID = _patientId1.ToString(), PatientType = "住院病人", CreateTime = DateTime.Now.AddDays(-1), CurrentSite = "rjwest" }; _procedureId1 = Guid.NewGuid().ToString(); _procedure1 = new Procedure { UniqueID = _procedureId1, OrderID = _orderId1, ModalityType = "CR", Modality = "CR1", Status = 20, ExamineTime = DateTime.Now.AddDays(-1) }; _orderId2 = Guid.NewGuid().ToString(); _order2 = new Order { UniqueID = _orderId2, AccNo = "000002", PatientID = _patientId1.ToString(), PatientType = "急诊病人", CreateTime = DateTime.Now, CurrentSite = "rjwest" }; _procedureId2 = Guid.NewGuid().ToString(); _procedure2 = new Procedure { UniqueID = _procedureId2, OrderID = _orderId2, ModalityType = "CT", Modality = "CT1", Status = 50, ExamineTime = DateTime.Now }; _MockRisProContext.Patients.Add(_patient1); _MockRisProContext.Orders.Add(_order1); _MockRisProContext.Orders.Add(_order2); _MockRisProContext.Procedures.Add(_procedure1); _MockRisProContext.Procedures.Add(_procedure2); }
public ShortcutService(IShortcutRepository shortcutRepository, IShortcutTypeRepository shortcutTypeRepository, IShortcutStatusRepository shortcutStatusRepository) { _shortcutRepository = shortcutRepository; _shortcutTypeRepository = shortcutTypeRepository; _shortcutStatusRepository = shortcutStatusRepository; }
/// <summary> /// Initializes the repositories. /// </summary> private void InitializeRepositories() { this.Users = new UserRepository(this._databaseContext); this.Characters = new CharacterRepository(this._databaseContext); this.Items = new ItemRepository(this._databaseContext); this.Mails = new MailRepository(this._databaseContext); this.TaskbarShortcuts = new ShortcutRepository(this._databaseContext); }
public Settings(Form1 frm1) { InitializeComponent(); Shortcuts = new List<Shortcut>(); frm = frm1; ShortcutRepository = frm.ShortcutRepository; SettingsRepository = frm.SettingsRepository; }
public const int Category = 54321; //12345; public WorklistService(IRisProContext dbContext, IShortcutRepository shortcutRepository, IConfigurationService configurationService) { _dbContext = dbContext; _shortcutRepository = shortcutRepository; _configurationService = configurationService; AddDisposableObject(dbContext); AddDisposableObject(shortcutRepository); AddDisposableObject(configurationService); }
public ShortcutQuery(IShortcutRepository shortcutRepository) { _shortcutRepository = shortcutRepository; }
public ShortcutAdmin(IShortcutRepository shortcutRepository) { _shortcutRepository = shortcutRepository; }
public ShortcutService(IShortcutRepository shortcutRepository) { _shortcutRepository = shortcutRepository; }