Esempio n. 1
0
 public UsersService(IGrowingFieldProfitsRepository growingFieldProfitsRepository,
     IGrowingFruitProfitsRepository growingFruitProfitsRepository,
     IBreedingRemindingRepository breedingRemindingRepository,
     IRemindingRepository remindingRepository, IUsersRepository usersRepository)
 {
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingFruitProfitsRepository = growingFruitProfitsRepository;
     _breedingRemindingRepository = breedingRemindingRepository;
     _remindingRepository = remindingRepository;
     _usersRepository = usersRepository;
 }
Esempio n. 2
0
 public UsersService(IGrowingFieldProfitsRepository growingFieldProfitsRepository,
                     IGrowingFruitProfitsRepository growingFruitProfitsRepository,
                     IBreedingRemindingRepository breedingRemindingRepository,
                     IRemindingRepository remindingRepository, IUsersRepository usersRepository)
 {
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingFruitProfitsRepository = growingFruitProfitsRepository;
     _breedingRemindingRepository   = breedingRemindingRepository;
     _remindingRepository           = remindingRepository;
     _usersRepository = usersRepository;
 }
Esempio n. 3
0
        public override void Dispose()
        {
            if (_usersRepository == null)
            {
                return;
            }
            _usersRepository.Dispose();
            _usersRepository = null;

            if (_remindingRepository == null)
            {
                return;
            }
            _remindingRepository.Dispose();
            _remindingRepository = null;

            if (_growingFieldProfitsRepository == null)
            {
                return;
            }
            _growingFieldProfitsRepository.Dispose();
            _growingFieldProfitsRepository = null;

            if (_growingFruitProfitsRepository == null)
            {
                return;
            }
            _growingFruitProfitsRepository.Dispose();
            _growingFruitProfitsRepository = null;

            if (_breedingRemindingRepository == null)
            {
                return;
            }
            _breedingRemindingRepository.Dispose();
            _breedingRemindingRepository = null;
        }
Esempio n. 4
0
 public UsersService(IRemindingRepository remindingRepository)
 {
     _remindingRepository = remindingRepository;
 }
Esempio n. 5
0
        public override void Dispose()
        {
            if (_usersRepository == null) return;
            _usersRepository.Dispose();
            _usersRepository = null;

            if (_remindingRepository == null) return;
            _remindingRepository.Dispose();
            _remindingRepository = null;

            if (_growingFieldProfitsRepository == null) return;
            _growingFieldProfitsRepository.Dispose();
            _growingFieldProfitsRepository = null;

            if (_growingFruitProfitsRepository == null) return;
            _growingFruitProfitsRepository.Dispose();
            _growingFruitProfitsRepository = null;

            if (_breedingRemindingRepository == null) return;
            _breedingRemindingRepository.Dispose();
            _breedingRemindingRepository = null;
        }
Esempio n. 6
0
 public UsersService(IRemindingRepository remindingRepository)
 {
     _remindingRepository = remindingRepository;
 }