示例#1
0
 public BreedingController()
 {
     _breedingService = new BreedingService(new YoungBreedingRepository(_context), new BreedingComingsRepository(_context),
                                            new BeeComingsRepository(_context), new FishComingsRepository(_context), new BreedingChargesRepository(_context),
                                            new BreedingDailyProfitRepository(_context), new BeeHoneyRepository(_context), new BreedingProfitRepository(_context),
                                            new FishProfitRepository(_context), new BreedingRemindingRepository(_context), new BreedingTypeRepository(_context),
                                            new BreedingCulturesRepository(_context), new HoneyTypeRepository(_context), new UsersRepository(_context));
     _breedingCulturesRepository = new BreedingCulturesRepository(_context);
     _honeyTypeRepository        = new HoneyTypeRepository(_context);
 }
 public BreedingController()
 {
     _breedingService = new BreedingService(new YoungBreedingRepository(_context), new BreedingComingsRepository(_context),
      new BeeComingsRepository(_context), new FishComingsRepository(_context), new BreedingChargesRepository(_context),
      new BreedingDailyProfitRepository(_context), new BeeHoneyRepository(_context), new BreedingProfitRepository(_context),
      new FishProfitRepository(_context), new BreedingRemindingRepository(_context), new BreedingTypeRepository(_context),
      new BreedingCulturesRepository(_context), new HoneyTypeRepository(_context), new UsersRepository(_context));
     _breedingCulturesRepository = new BreedingCulturesRepository(_context);
     _honeyTypeRepository = new HoneyTypeRepository(_context);
 }
 public BreedingApiController()
 {
     _breedingService = new BreedingService(new BreedingComingsRepository(_context));
     _beeService = new BreedingService(new BeeComingsRepository(_context));
     _fishService = new BreedingService(new FishComingsRepository(_context));
 }
示例#4
0
 public BreedingApiController()
 {
     _breedingService = new BreedingService(new BreedingComingsRepository(_context));
     _beeService      = new BreedingService(new BeeComingsRepository(_context));
     _fishService     = new BreedingService(new FishComingsRepository(_context));
 }