public void DeleteThenGet_ShouldReturnEmpty() { _gateway.Initialize(); var id = "he_22216"; var feature = _gateway.GetPointOfInterestById(id, Sources.WIKIPEDIA).Result; Assert.IsNotNull(feature); _gateway.DeletePointOfInterestById(id, Sources.WIKIPEDIA).Wait(); feature = _gateway.GetPointOfInterestById(id, Sources.WIKIPEDIA).Result; Assert.IsNull(feature); }
public void DeleteThenGet_ShouldReturnEmpty() { var gateway = new ElasticSearchGateway(new TraceLogger()); gateway.Initialize(); var id = "he_22216"; var feature = gateway.GetPointOfInterestById(id, Sources.WIKIPEDIA).Result; Assert.IsNotNull(feature); gateway.DeletePointOfInterestById(id, Sources.WIKIPEDIA).Wait(); feature = gateway.GetPointOfInterestById(id, Sources.WIKIPEDIA).Result; Assert.IsNull(feature); }