public Mock <IServiceProvider> GetServiceProvider(IGarmentShippingNoteRepository repository) { var spMock = new Mock <IServiceProvider>(); spMock.Setup(s => s.GetService(typeof(IGarmentShippingNoteRepository))) .Returns(repository); return(spMock); }
public GarmentShippingCreditNoteService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; _repository = serviceProvider.GetService <IGarmentShippingNoteRepository>(); }
public GarmentDebitNoteMonitoringService(IServiceProvider serviceProvider) { repository = serviceProvider.GetService <IGarmentShippingNoteRepository>(); itemrepository = serviceProvider.GetService <IGarmentShippingNoteItemRepository>(); _identityProvider = serviceProvider.GetService <IIdentityProvider>(); }