Exemplo n.º 1
0
 public void TestInheritedLookup()
 {
     var client = new ElasticClient(new ConnectionSettings(new Uri("http://localhost:9200")));
     var expected = new InheritedIdClass() { Id = 123 };
     var id = new IdResolver().GetIdFor(expected);
     id = new IdResolver().GetIdFor(expected);
     Assert.AreEqual(expected.Id.ToString(), id);
 }
Exemplo n.º 2
0
        public void TestInheritedLookup()
        {
            var expected = new InheritedIdClass()
            {
                Id = 123
            };
            var id = new IdResolver().GetIdFor(expected);

            id = new IdResolver().GetIdFor(expected);
            Assert.AreEqual(expected.Id.ToString(), id);
        }
Exemplo n.º 3
0
        public void TestInheritedLookup()
        {
            var client   = new ElasticClient(new ConnectionSettings(new Uri("http://localhost:9200")));
            var expected = new InheritedIdClass()
            {
                Id = 123
            };
            var id = new IdResolver().GetIdFor(expected);

            id = new IdResolver().GetIdFor(expected);
            Assert.AreEqual(expected.Id.ToString(), id);
        }
Exemplo n.º 4
0
		public void TestInheritedLookup()
		{
			var expected = new InheritedIdClass() { Id = 123 };
			var id = new IdResolver().GetIdFor(expected);
			id = new IdResolver().GetIdFor(expected);
			Assert.AreEqual(expected.Id.ToString(), id);
		}