public MockHospitalRepository(IConfiguration config, ILogger logger) : base(config) { _logger = logger; dataSetTest = new DataSetTest(); existingHospital = new Dictionary <long, HospitalTable>(); existingHospital.Add(1, dataSetTest.FakeHospitalTable1()); }
public MockPharmacyInventoryRepository(IConfiguration config, ILogger logger) : base(config) { _logger = logger; dataSetTest = new DataSetTest(); existingPharmacyInventory = new Dictionary <long, PharmacyInventoryTable>(); existingPharmacyInventory.Add(1, dataSetTest.FakePharmacyInventoryTable1()); }
public MockItemRepository(IConfiguration config, ILogger logger) : base(config) { _logger = logger; dataSetTest = new DataSetTest(); existingItems = new Dictionary <long, ItemTable>(); existingItems.Add(1, dataSetTest.FakeItemTable1()); }
public void Initialize() { var mapperConfig = new MapperConfiguration(cfg => cfg.AddProfile(new Mapping())); _mapper = new Mapper(mapperConfig); dataSetTest = new DataSetTest(); _domainService = new MockDomainService(); _controller = new PharmacyInventoryController(null, _domainService, _mapper); }
public void Initialize() { dataSetTest = new DataSetTest(); var mapperConfig = new MapperConfiguration(cfg => cfg.AddProfile(new DataMapping())); _mapper = new Mapper(mapperConfig); _configuration = new MockConfiguration(); _logger = new MockLogger(); _itemRepository = new MockItemRepository(_configuration, _logger); _itemVendorRepository = new MockItemVendorRepository(_configuration, _logger); _pharmacyRepository = new MockPharmacyRepository(_configuration, _logger); _pharmacyInventoryRepository = new MockPharmacyInventoryRepository(_configuration, _logger); _hospitalRepository = new MockHospitalRepository(_configuration, _logger); _domainService = new DomainService(_mapper, _itemRepository, _itemVendorRepository, _pharmacyRepository, _pharmacyInventoryRepository, _hospitalRepository); }
public MockDomainService() { DataSetTest = new DataSetTest(); }