private GarmentSewingBlockingPlanDataUtil DataUtil(GarmentSewingBlockingPlanFacade facade, SalesDbContext dbContext)
        {
            var serviceProvider     = GetServiceProviderMock(dbContext).Object;
            var WeekserviceProvider = GetWeekServiceProviderMock(dbContext).Object;
            var BOserviceProvider   = GetBOServiceProviderMock(dbContext).Object;

            var weeklyPlanFacade   = new WeeklyPlanFacade(WeekserviceProvider, dbContext);
            var weeklyPlanDataUtil = new WeeklyPlanDataUtil(weeklyPlanFacade);

            var bookingOrderFacade          = new GarmentBookingOrderFacade(BOserviceProvider, dbContext);
            var garmentBookingOrderDataUtil = new GarmentBookingOrderDataUtil(bookingOrderFacade);

            var garmentSewingBlockingPlanFacade = new GarmentSewingBlockingPlanFacade(serviceProvider, dbContext);
            var garmentPurchaseRequestDataUtil  = new GarmentSewingBlockingPlanDataUtil(garmentSewingBlockingPlanFacade, weeklyPlanDataUtil, garmentBookingOrderDataUtil);



            return(garmentPurchaseRequestDataUtil);
        }
Beispiel #2
0
 public GarmentSewingBlockingPlanDataUtil(GarmentSewingBlockingPlanFacade facade, WeeklyPlanDataUtil weeklyPlanDataUtil, GarmentBookingOrderDataUtil garmentBookingOrderDataUtil) : base(facade)
 {
     this.weeklyPlanDataUtil          = weeklyPlanDataUtil;
     this.garmentBookingOrderDataUtil = garmentBookingOrderDataUtil;
 }
        protected virtual GarmentBookingOrderDataUtil DataUtil(GarmentBookingOrderFacade facade, SalesDbContext dbContext = null)
        {
            GarmentBookingOrderDataUtil dataUtil = new GarmentBookingOrderDataUtil(facade);

            return(dataUtil);
        }