public BreedingService(IYoungBreedingRepository youngBreedingRepository, IBreedingComingsRepository breedingComingsRepository, IBeeComingsRepository beeComingsRepository, IFishComingsRepository fishComingsRepository, IBreedingChargesRepository breedingChargesRepository, IBreedingDailyProfitRepository breedingDailyProfitRepository, IBeeHoneyRepository beeHoneyRepository, IBreedingProfitRepository breedingProfitsRepository, IFishProfitRepository fishProfitRepository, IBreedingRemindingRepository breedingRemindingRepository, IBreedingTypeRepository breedingTypeRepository, IBreedingCulturesRepository breedingCulturesRepository, IHoneyTypeRepository honeyTypeRepository, IUsersRepository userRepository) { _youngBreedingRepository = youngBreedingRepository; _breedingComingsRepository = breedingComingsRepository; _beeComingsRepository = beeComingsRepository; _fishComingsRepository = fishComingsRepository; _breedingChargesRepository = breedingChargesRepository; _breedingDailyProfitRepository = breedingDailyProfitRepository; _beeHoneyRepository = beeHoneyRepository; _breedingProfitRepository = breedingProfitsRepository; _fishProfitRepository = fishProfitRepository; _breedingRemindingRepository = breedingRemindingRepository; _breedingTypeRepository = breedingTypeRepository; _breedingCulturesRepository = breedingCulturesRepository; _honeyTypeRepository = honeyTypeRepository; _usersRepository = userRepository; }
public override void Dispose() { if (_youngBreedingRepository == null) return; _youngBreedingRepository.Dispose(); _youngBreedingRepository = null; if (_breedingComingsRepository == null) return; _breedingComingsRepository.Dispose(); _breedingComingsRepository = null; if (_beeComingsRepository == null) return; _beeComingsRepository.Dispose(); _beeComingsRepository = null; if (_fishComingsRepository == null) return; _fishComingsRepository.Dispose(); _fishComingsRepository = null; if (_breedingChargesRepository == null) return; _breedingChargesRepository.Dispose(); _breedingChargesRepository = null; if (_breedingDailyProfitRepository == null) return; _breedingDailyProfitRepository.Dispose(); _breedingDailyProfitRepository = null; if (_beeHoneyRepository == null) return; _beeHoneyRepository.Dispose(); _beeHoneyRepository = null; if (_breedingProfitRepository == null) return; _breedingProfitRepository.Dispose(); _breedingProfitRepository = null; if (_fishProfitRepository == null) return; _fishProfitRepository.Dispose(); _fishProfitRepository = null; if (_breedingRemindingRepository == null) return; _breedingRemindingRepository.Dispose(); _breedingRemindingRepository = null; if (_breedingTypeRepository == null) return; _breedingTypeRepository.Dispose(); _breedingTypeRepository = null; if (_breedingCulturesRepository == null) return; _breedingCulturesRepository.Dispose(); _breedingCulturesRepository = null; if (_honeyTypeRepository == null) return; _honeyTypeRepository.Dispose(); _honeyTypeRepository = null; if (_usersRepository == null) return; _usersRepository.Dispose(); _usersRepository = null; }
public override void Dispose() { if (_youngBreedingRepository == null) { return; } _youngBreedingRepository.Dispose(); _youngBreedingRepository = null; if (_breedingComingsRepository == null) { return; } _breedingComingsRepository.Dispose(); _breedingComingsRepository = null; if (_beeComingsRepository == null) { return; } _beeComingsRepository.Dispose(); _beeComingsRepository = null; if (_fishComingsRepository == null) { return; } _fishComingsRepository.Dispose(); _fishComingsRepository = null; if (_breedingChargesRepository == null) { return; } _breedingChargesRepository.Dispose(); _breedingChargesRepository = null; if (_breedingDailyProfitRepository == null) { return; } _breedingDailyProfitRepository.Dispose(); _breedingDailyProfitRepository = null; if (_beeHoneyRepository == null) { return; } _beeHoneyRepository.Dispose(); _beeHoneyRepository = null; if (_breedingProfitRepository == null) { return; } _breedingProfitRepository.Dispose(); _breedingProfitRepository = null; if (_fishProfitRepository == null) { return; } _fishProfitRepository.Dispose(); _fishProfitRepository = null; if (_breedingRemindingRepository == null) { return; } _breedingRemindingRepository.Dispose(); _breedingRemindingRepository = null; if (_breedingTypeRepository == null) { return; } _breedingTypeRepository.Dispose(); _breedingTypeRepository = null; if (_breedingCulturesRepository == null) { return; } _breedingCulturesRepository.Dispose(); _breedingCulturesRepository = null; if (_honeyTypeRepository == null) { return; } _honeyTypeRepository.Dispose(); _honeyTypeRepository = null; if (_usersRepository == null) { return; } _usersRepository.Dispose(); _usersRepository = null; }