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 ConfigurationController() { _service = new WorklistService(); }