public Mock <IServiceProvider> GetServiceProvider(IGarmentShippingLocalSalesDORepository repository)
        {
            var spMock = new Mock <IServiceProvider>();

            spMock.Setup(s => s.GetService(typeof(IGarmentShippingLocalSalesDORepository)))
            .Returns(repository);

            return(spMock);
        }
Beispiel #2
0
 public GarmentShippingLocalSalesDOService(IServiceProvider serviceProvider)
 {
     _repository = serviceProvider.GetService <IGarmentShippingLocalSalesDORepository>();
 }