public void IdPropertyMapped_And_TypeHasIdPropertyAttribute_MappingTakesPrecedence()
        {
            var settings = new ConnectionSettings()
                           .MapIdPropertyFor <IdPropertyTestWithAttribute>(o => o.Id);

            var client = new ElasticClient(settings, connection: new InMemoryConnection());

            var doc = new IdPropertyTestWithAttribute
            {
                Id   = "should-be-the-id",
                Name = "should-not-be-the-id"
            };

            Assert.AreEqual(doc.Id, client.Infer.Id <IdPropertyTestWithAttribute>(doc));
        }
		public void IdPropertyMapped_And_TypeHasIdPropertyAttribute_MappingTakesPrecedence()
		{
			var settings = new ConnectionSettings()
				.MapIdPropertyFor<IdPropertyTestWithAttribute>(o => o.Id);

			var client = new ElasticClient(settings, connection: new InMemoryConnection());

			var doc = new IdPropertyTestWithAttribute
			{
				Id = "should-be-the-id",
				Name = "should-not-be-the-id"
			};

			Assert.AreEqual(doc.Id, client.Infer.Id<IdPropertyTestWithAttribute>(doc));
		}