Esempio n. 1
0
        public void FindTest3()
        {
            var sniperInfoRepository = new SniperInfoRepository();

            sniperInfoRepository.Increase(new SniperInfo()
            {
                Latitude = 40.762401, Longitude = -73.950447, Id = PokemonId.Vaporeon
            });
            var oldSniperInfo = sniperInfoRepository.Find(new SniperInfo()
            {
                Latitude  = 40.762858,
                Longitude = -73.950448,
                Id        = PokemonId.Vaporeon
            });

            Assert.IsNull(oldSniperInfo);
        }
Esempio n. 2
0
        public void FindTest()
        {
            var sniperInfoRepository = new SniperInfoRepository();

            sniperInfoRepository.Increase(new SniperInfo()
            {
                Latitude = 48.830168, Longitude = 2.316475, Id = PokemonId.Poliwrath
            });
            var oldSniperInfo = sniperInfoRepository.Find(new SniperInfo()
            {
                Latitude  = 48.830169,
                Longitude = 2.316475,
                Id        = PokemonId.Poliwrath
            });

            Assert.IsNotNull(oldSniperInfo);
        }
Esempio n. 3
0
 public SniperInfoRepositoryManager(SniperInfoRepository sniperInfoRepository)
 {
     _sniperInfoRepository = sniperInfoRepository;
 }
Esempio n. 4
0
 private MessageCache()
 {
     _clientRepository            = new SniperInfoRepository();
     _sniperInfoRepositoryManager = new SniperInfoRepositoryManager(_clientRepository);
 }