Exemple #1
0
 public PartService(
     IAuthorisationService authService,
     IRepository <QcControl, int> qcControlRepository,
     IQueryRepository <Supplier> supplierRepository,
     IRepository <Part, int> partRepository,
     IRepository <PartTemplate, string> templateRepository,
     IRepository <MechPartSource, int> sourceRepository,
     IRepository <StockLocator, int> stockLocatorRepository,
     IRepository <PartDataSheet, PartDataSheetKey> dataSheetRepository,
     IPartPack partPack)
 {
     this.authService            = authService;
     this.supplierRepository     = supplierRepository;
     this.qcControlRepository    = qcControlRepository;
     this.partRepository         = partRepository;
     this.partPack               = partPack;
     this.sourceRepository       = sourceRepository;
     this.templateRepository     = templateRepository;
     this.stockLocatorRepository = stockLocatorRepository;
     this.dataSheetRepository    = dataSheetRepository;
 }
Exemple #2
0
 public PartLiveService(IPartPack partPack, IRepository <Part, int> partRepository)
 {
     this.partPack       = partPack;
     this.partRepository = partRepository;
 }