//Constructor public ParkingLotTestCase() { var context = new ParkingLotDbContext(dbContextOptions); _IVehicalParkingDetailsRL = new VehicalParkingDetailsRL(context); _IVehicalParkingDetailsBL = new VehicalParkingDetailsBL(_IVehicalParkingDetailsRL); _IUserRL = new UserRL(context); _IUserBL = new UserBL(_IUserRL); parkingController = new ParkingController(_IVehicalParkingDetailsBL, distributedCache); userController = new UserController(_IUserBL, configuration); }
public ParkingController(IVehicalParkingDetailsBL _parkingLotBusiness, IDistributedCache distributedCache) { parkingLotBusiness = _parkingLotBusiness; this.distributedCache = distributedCache; }