public void TestReservationCheckInDataAccess()
        {
            var mfe           = GetMainFilterExample();
            var resCarFilterQ = new ReservationsFilterCar();
            var resFilterQ    = new ReservationsSiteFilter();
            var reqCi         = new ResActualCIQueryable();
            var resCiSiteQ    = new ResSiteCIQueryable();
            var resCiFleetQ   = new PoolingCheckInReservations();

            List <DayActualEntity> dayActuals;
            List <DayActualEntity> site;
            List <DayActualEntity> fleet;

            using (var db = new PoolingDataClassesDataContext())
            {
                var q2And3 = resCarFilterQ.FilterByCarParameters(db, mfe, true);
                q2And3 = resFilterQ.FilterByReturnLocation(q2And3, mfe);

                mfe.Branch = "";
                site       = resCiSiteQ.GetQueryableCI(q2And3, mfe, Enums.DayActualTime.THREE, db);
                mfe.Branch = "GELEJ50";
                fleet      = resCiFleetQ.GetFleetReservationsWithLabels(q2And3, mfe, Enums.DayActualTime.THREE, db);

                dayActuals = reqCi.GetQueryable(q2And3, mfe, Enums.DayActualTime.THREE);
            }


            TestResultComparison.CheckAllPoolingValues(dayActuals, fleet, site, "GELEJ50");
        }
        public void TestReservationCheckOutDataAccess()
        {
            var mfe           = GetMainFilterExample();
            var resCarFilterQ = new ReservationsFilterCar();
            var resFilterQ    = new ReservationsSiteFilter();
            var reqCo         = new PoolingCheckOutReservations();

            var resCOSiteQ  = new ResSiteCOQueryable();
            var resCOFleetQ = new PoolingCheckOutReservationsWithLabels();

            List <DayActualEntity> dayActuals;
            List <DayActualEntity> fleet;
            List <DayActualEntity> site;

            using (var db = new PoolingDataClassesDataContext())
            {
                var q2And3 = resCarFilterQ.FilterByCarParameters(db, mfe, false);
                q2And3 = resFilterQ.FilterByRentalLocation(q2And3, mfe);


                mfe.Branch = "";
                site       = resCOSiteQ.GetQueryableCO(q2And3, mfe, Enums.DayActualTime.THREE).ToList();
                mfe.Branch = "GELEJ50";
                fleet      = resCOFleetQ.GetQueryable(q2And3, mfe, Enums.DayActualTime.THREE).ToList();


                dayActuals = reqCo.GetReservationsWithoutLabels(q2And3, mfe, Enums.DayActualTime.THREE).ToList();
            }

            TestResultComparison.CheckAllPoolingValues(dayActuals, fleet, site, "GELEJ50");
        }
 public ResDetailsRepository()
 {
     _resCarFilterQ  = new ReservationsFilterCar();
     _resFilterQ     = new ReservationsSiteFilter();
     _resDetQ        = new ResDetailsQueryable();
     _resCOQueryable = new ResDetailCOQueryable();
     _resCIQueryable = new ResDetailCIQueryable();
     _resBFQ         = new ResDetailsBottomFilterQueryable(new FilterRepository());
     _resSortQ       = new ResDetailsSortQueryable(new DetailsSortRepository());
 }
 public FleetComparisonRepository()
 {
     _resCarFilterQ   = new ReservationsFilterCar();
     _resFilterQ      = new ReservationsSiteFilter();
     _feaFleetQ       = new FeaFleetQueryable();
     _resFleetCIQ     = new PoolingCheckInReservations();
     _resFleetCOQ     = new PoolingCheckOutReservationsWithLabels();
     getFeaData       = GetFeaData;
     getPoolingCIData = GetPoolingCIData;
     getPoolingCOData = GetPoolingCOData;
 }
 public SiteComparisonRepository()
 {
     _resCarFilterQ   = new ReservationsFilterCar();
     _resFilterQ      = new ReservationsSiteFilter();
     _feaSiteQ        = new FeaSiteQueryable();
     _resCISiteQ      = new ResSiteCIQueryable();
     _resCOSiteQ      = new ResSiteCOQueryable();
     getFeaData       = GetFeaData;
     getPoolingCIData = GetPoolingCIData;
     getPoolingCOData = GetPoolingCOData;
 }
 public AlertsRepository()
 {
     _resCarFilterQ = new ReservationsFilterCar();
     _resFilterQ    = new ReservationsSiteFilter();
     _resQCo        = new ResAlertsCOQueryable();
     _resQCi        = new ResAlertsCIQueryable();
     _alertsRetQ    = new AlertsReturnQueryable();
     _feaAlertsQ    = new FeaAlertsQueryable();
     d1             = GetFeaData;
     d2             = GetPoolingCIData;
     d3             = GetPoolingCOData;
 }
 public DayActualRepository(IJavaScriptRepository j, Enums.DayActualTime Time)
 {
     JavascriptRepository = j;
     _time            = Time;
     _feq             = new FeaPoolingDataAccess();
     _resCarFilterQ   = new ReservationsFilterCar();
     _resFilterQ      = new ReservationsSiteFilter();
     _reqCi           = new ResActualCIQueryable();
     _reqCo           = new PoolingCheckOutReservations();
     _feaFilterQ      = new FeaFilteredQueryable();
     getFeaData       = GetFeaData;
     getPoolingCIData = GetPoolingCIData;
     getPoolingCOData = GetPoolingCOData;
 }