public void Can_read_inserted_record()
        {
            var logEvent = new LogEvent {Message = "testmessage", ClassName = "thisclass"};

            client.Index(logEvent);
            Thread.Sleep(2000);

            var searchResults = client.Search<LogEvent>(s => s.Query(q => q.Term("ClassName", "thisclass")));

            Assert.Equal(1, Convert.ToInt32(searchResults.Total));
        }
        public void Can_insert_record()
        {
            var logEvent = new LogEvent
                {
                    ClassName = "IntegrationTestClass",
                    Domain = "TestDomain",
                    Exception = "This is a test exception",
                    FileName = "c:\test\file.txt",
                    Fix = "none",
                    FullInfo = "A whole bunch of error info dump",
                    Identity = "localhost\\user",
                    Level = "9",
                    LineNumber = "99",
                    TimeStamp = DateTime.Now
                };

            var results = client.Index(logEvent);

            Assert.NotNull(results.Id);
        }