Beispiel #1
0
 public AuctionService()
 {
     _unitOfWork         = new UnitOfWork(new AnonymousBidderDataContext());
     _filePathRepository = new FilePathRepository(_unitOfWork);
     _auctionRepository  = new AuctionRepository(_unitOfWork);
     _abUserRepository   = new ABUserRepository(_unitOfWork);
     _userRoleRepository = new UserRoleRepository(_unitOfWork);
     _bidRepository      = new BidRepository(_unitOfWork);
 }
 public PlanetController()
 {
     context            = new ApplicationDbContext();
     planetRepository   = new PlanetRepository(context);
     climateRepository  = new ClimateRepository(context);
     terrainRepository  = new TerrainRepository(context);
     filePathRepository = new FilePathRepository(context);
     unitOfWork         = new UnitOfWork(context);
 }
 public RaceController()
 {
     context                      = new ApplicationDbContext();
     planetRepository             = new PlanetRepository(context);
     raceClassificationRepository = new RaceClassificationRepository(context);
     raceRepository               = new RaceRepository(context);
     unitOfWork                   = new UnitOfWork(context);
     filePathRepository           = new FilePathRepository(context);
 }
 public RacesController()
 {
     context            = new ApplicationDbContext();
     raceRepository     = new RaceRepository(context);
     ticketRepository   = new TicketRepository(context);
     orderRepository    = new OrderRepository(context);
     filePathRepository = new FilePathRepository(context);
     fileManager        = new FileManager(HostingEnvironment.MapPath("~/App_Assets/"));
     unitOfWork         = new UnitOfWork(context);
 }