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); }
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); }
public SniperInfoRepositoryManager(SniperInfoRepository sniperInfoRepository) { _sniperInfoRepository = sniperInfoRepository; }
private MessageCache() { _clientRepository = new SniperInfoRepository(); _sniperInfoRepositoryManager = new SniperInfoRepositoryManager(_clientRepository); }