static void Main(string[] args)
        {
            //TODO: A global menu to control the game


            TheUndergoundConsoleDbContext dbContext = new TheUndergoundConsoleDbContext();
            IBrandService     brandService          = new BrandService(dbContext);
            IModelService     modelService          = new ModelService(dbContext);
            ICarService       carService            = new CarService(dbContext);
            IStoreService     storeService          = new StoreService(dbContext);
            IPlayerService    playerService         = new PlayerService(dbContext);
            IRaceEventService raceEventService      = new RaceEventService();

            //ImportDataToBrands(brandService);
            //ImportDataToModels(modelService, brandService);
            //CreateCar(carService, brandService, modelService);
            //ShowCarsInStore(storeService);
            //CreatePlayer(playerService);
            //BuyCar(playerService, storeService);
            //Player player = playerService.ChoosePlayerToPlayWith();
            //ShowGaradge(playerService, player);

            StartRaceEvent(raceEventService, playerService, carService);
        }
 public ModelService(TheUndergoundConsoleDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public StoreService(TheUndergoundConsoleDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#4
0
 public PlayerService(TheUndergoundConsoleDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#5
0
 public BrandService(TheUndergoundConsoleDbContext dbContext)
 {
     this.dbContext = dbContext;
 }