Ejemplo n.º 1
0
 public DomainService(IMapper mapper, IItemRepository itemRepository, IItemVendorRepository itemVendorRepository
                      , IPharmacyRepository pharmacyRepository, IPharmacyInventoryRepository pharmacyInventoryRepository, IHospitalRepository hospitalRepository)
 {
     _mapper                      = mapper;
     _itemRepository              = itemRepository;
     _itemVendorRepository        = itemVendorRepository;
     _pharmacyRepository          = pharmacyRepository;
     _pharmacyInventoryRepository = pharmacyInventoryRepository;
     _hospitalRepository          = hospitalRepository;
 }
Ejemplo n.º 2
0
        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);
        }