//private readonly DbSet<GarmentPackingListModel> dbSet;


        public GarmentMonitoringDeliveredPackingListSampleService(IServiceProvider serviceProvide)
        {
            _serviceProvider     = serviceProvide;
            _identityProvider    = serviceProvide.GetService <IIdentityProvider>();
            plrepository         = serviceProvide.GetService <IGarmentPackingListRepository>();
            detailrepository     = serviceProvide.GetService <IGarmentPackingListDetailRepository>();
            detailsizerepository = serviceProvide.GetService <IGarmentPackingListDetailSizeRepository>();
            itemrepository       = serviceProvide.GetService <IGarmentPackingListItemRepository>();
        }
        public Mock <IServiceProvider> GetServiceProvider(IGarmentPackingListRepository repository, IGarmentPackingListItemRepository packingListItemRepository, IGarmentPackingListDetailRepository packingListDetailRepository, IGarmentPackingListDetailSizeRepository garmentPackingListDetailSizeRepository)
        {
            var spMock = new Mock <IServiceProvider>();

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

            spMock.Setup(s => s.GetService(typeof(IGarmentPackingListItemRepository)))
            .Returns(packingListItemRepository);

            spMock.Setup(s => s.GetService(typeof(IGarmentPackingListDetailRepository)))
            .Returns(packingListDetailRepository);

            spMock.Setup(s => s.GetService(typeof(IGarmentPackingListDetailSizeRepository)))
            .Returns(garmentPackingListDetailSizeRepository);

            spMock.Setup(s => s.GetService(typeof(IIdentityProvider)))
            .Returns(new IdentityProvider());

            return(spMock);
        }