public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new Mock<IRepository>(); _updateActivityData = new UpdateActivityData(_repository.Object, _log.Object); }
public void TestInitialize() { mockReportingEntity = new ReportingEntitiesMock(); configHelper = new ConfigHelper(); log = new Mock<ILogger>(); repository = new Repository(mockReportingEntity, configHelper, log.Object); }
public void TestInitialize() { _ePharmMockEntity = new ePharmacyEntitiesMock(); _reportingMockEntity = new ReportingEntitiesMock(); _mockRepository = new Repository(_ePharmMockEntity, _reportingMockEntity); _log = new Logger(); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _mockContext.tbEPS_Organisation.AddObject(TestHelpers.PopulateTable.AddOrganisationDataRow("1234", "Highland Health Board")); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _mockContext.tbRPT_OrgSupplier.AddObject(TestHelpers.PopulateTable.AddOrgSupplierDataRow("1234", "INPS")); }
public void TestInitialize() { _ePharmMockEntity = new ePharmacyEntitiesMock(); _reportingMockEntity = new ReportingEntitiesMock(); _mockRepository = new Repository(_ePharmMockEntity, _reportingMockEntity); _configFileHelperStub = new TestHelpers.Stubs.ConfigFileHelperStub(); _log = new Logger(); }
public Repository(IReportingEntities reportingEntity, IConfigHelper configHelper, ILogger log) { _reportingEntity = reportingEntity; _configHelper = configHelper; _log = log; numberOfRetriesAfterDatabaseError = _configHelper.GetNumberOfRetriesAfterDatabaseError(); }
public void TestInitialize() { _ePharmMockEntity = new ePharmacyEntitiesMock(); _reportingMockEntity = new ReportingEntitiesMock(); _mockRepository = new Repository(_ePharmMockEntity, _reportingMockEntity); _configFileHelperStub = new TestHelpers.Stubs.ConfigFileHelperStub(); _log = new Logger(); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _mockContext.tbRPT_InactiveSites.AddObject(TestHelpers.PopulateTable.AddInactiveSitesDataRow("1234", null, DateTime.Today, null)); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _mockContext.tbRPT_SupplierContacts.AddObject(TestHelpers.PopulateTable.AddSupplierContactsDataRow(1, "INPS", "*****@*****.**")); _mockContext.tbRPT_SupplierContacts.AddObject(TestHelpers.PopulateTable.AddSupplierContactsDataRow(2, "GPASS", "*****@*****.**")); _mockContext.tbRPT_SupplierContacts.AddObject(TestHelpers.PopulateTable.AddSupplierContactsDataRow(1, "INPS", "*****@*****.**")); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); // Added to setup data for GetHealthBoardContactEmailsAddresses Test _mockContext.tbRPT_HealthBoardContacts.AddObject(TestHelpers.PopulateTable.AddHealthBoardContactsDataRow(1, "Highland Health Board", "*****@*****.**")); _mockContext.tbRPT_HealthBoardContacts.AddObject(TestHelpers.PopulateTable.AddHealthBoardContactsDataRow(2, "Grampian Health Board", "*****@*****.**")); _mockContext.tbRPT_HealthBoardContacts.AddObject(TestHelpers.PopulateTable.AddHealthBoardContactsDataRow(3, "Highland Health Board", "*****@*****.**")); }
public Repository(IePharmacyEntities ePharmacyContext, IReportingEntities reportingContext) { _ePharmacyEntityContext = ePharmacyContext; _reportingEntityContext = reportingContext; }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _smtpClient = new Mock<ISMTPWrapper>(); _email = new Email(_repository, _log.Object, _smtpClient.Object); _mockContext.tbRPT_OrgSupplier.AddObject(TestHelpers.PopulateTable.AddOrgSupplierDataRow("1234", "INPS")); _mockContext.tbRPT_OrgSupplier.AddObject(TestHelpers.PopulateTable.AddOrgSupplierDataRow("2345", "EMIS")); _mockContext.tbEPS_Organisation.AddObject(TestHelpers.PopulateTable.AddOrganisationDataRow("1234", "Highland Health Board", "Non-EMIS Site")); _mockContext.tbEPS_Organisation.AddObject(TestHelpers.PopulateTable.AddOrganisationDataRow("2345", "Highland Health Board", "EMIS Site")); _contacts = new List<string>(); _contacts.Add("*****@*****.**"); _contacts.Add("*****@*****.**"); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); }
public Repository(IePharmacyEntities ePharmacyContext, IReportingEntities reportingContext) { _ePharmacyEntityContext = ePharmacyContext; _reportingEntityContext = reportingContext; }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _mockContext.tbRPT_DailyActivityGP.AddObject(TestHelpers.PopulateTable.AddGPDailyActivityDataRow("uTest1", 2)); _mockContext.tbRPT_DailyActivityGP.AddObject(TestHelpers.PopulateTable.AddGPDailyActivityDataRow("uTest2", 2)); }
public void TestInitialize() { _reportingMockContext = new ReportingEntitiesMock(); _repository = new PRSErrorMonitor.Repository(_ePharmacyMockContext, _reportingMockContext); }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); // _repository = new Mock<IRepository>(_log.Object, _mockContext); // _repository = new Mock<IRepository>(); // _reportInactiveSites = new ReportInactiveSites(_repository.Object, _log.Object); _email = new Mock<IEmail>(); // _mockContext.tbRPT_InactiveSites.AddObject(TestHelpers.PopulateTable.AddInactiveSitesDataRow()) }
public void TestInitialize() { _ePharmMockEntity = new ePharmacyEntitiesMock(); _reportingMockEntity = new ReportingEntitiesMock(); _mockRepository = new Repository(_ePharmMockEntity, _reportingMockEntity); _log = new Logger(); }
public void TestInitialize() { _reportingMockContext = new ReportingEntitiesMock(); _repository = new PRSErrorMonitor.Repository(_ePharmacyMockContext, _reportingMockContext); }
public Repository(ILogger log, IReportingEntities context) { _log = log; _ReportingEntity = context; }
public void TestInitialize() { _mockContext = new ReportingEntitiesMock(); _log = new Mock<ILogger>(); _email = new Mock<IEmail>(); _repository = new ActivityMonitor.Repository.Repository(_log.Object, _mockContext); _checkMigratingSites = new CheckMigratingSites(_repository, _log.Object, _email.Object); }