예제 #1
0
 public void SetIndex_ShouldReturnResults()
 {
     _gateway.Initialize();
     _gateway.AddUrl(new ShareUrl {
         Id = "123", OsmUserId = "789"
     });
     _ = _gateway.GetUrlsByUser("789").Result;
     _ = _gateway.GetUrlById("123").Result;
     _gateway.Delete(new ShareUrl {
         Id = "123", OsmUserId = "456"
     });
 }
예제 #2
0
        public void SetIndex_ShouldReturnResults()
        {
            var gateway = new ElasticSearchGateway(new TraceLogger());

            gateway.Initialize();
            gateway.AddUrl(new ShareUrl {
                Id = "123", OsmUserId = "789"
            });
            var b = gateway.GetUrlsByUser("789").Result;
            var a = gateway.GetUrlById("123").Result;

            gateway.Delete(new ShareUrl {
                Id = "123", OsmUserId = "456"
            });
        }