<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using Nest.Tests.MockData;
using Nest.Tests.MockData.Domain;
using NUnit.Framework;

namespace Nest.Tests.Integration.Index
{
	[TestFixture]
	public class GetIdFromElasticSearchTests : BaseElasticSearchTests
	{

    public class LogClass
    {
      public string Message { get; set; }
    }
		[Test]
		public void IndexWithoutIdShouldSetIdFromElasticseach()
		{
      var newProject = new LogClass
      {
        Message = "Some Message",
      };
      var response = this.ConnectedClient.Index(newProject);
      Assert.IsTrue(response.IsValid);
      Assert.IsNotNullOrEmpty(response.Id);
      Assert.IsNotNullOrEmpty(response.Type);
      Assert.IsNotNullOrEmpty(response.Index);
      Assert.IsNotNullOrEmpty(response.Version);
		}
    [Test]
    public void IndexmanyWithoutIdShouldSetIdFromElasticseach()
    {
      var newProjects = new List<LogClass>
      {
        new LogClass { Message = "Some Message1" },
        new LogClass { Message = "Some Message2" },
        new LogClass { Message = "Some Message3" }
      };
      var response = this.ConnectedClient.IndexMany(newProjects);
      Assert.IsTrue(response.IsValid, response.ConnectionStatus.Result);
      Assert.IsNotEmpty(response.Items);
      Assert.True(response.Items.All(i => i.OK), response.ConnectionStatus.Result);
      Assert.True(response.Items.All(i => !i.Id.IsNullOrEmpty()));
    }
	}
}<commit_msg>spacing, need to get some editorconfig time :)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using Nest.Tests.MockData;
using Nest.Tests.MockData.Domain;
using NUnit.Framework;

namespace Nest.Tests.Integration.Index
{
  [TestFixture]
  public class GetIdFromElasticSearchTests : BaseElasticSearchTests
  {

    public class LogClass
    {
      public string Message { get; set; }
    }
    [Test]
    public void IndexWithoutIdShouldSetIdFromElasticseach()
    {
      var newProject = new LogClass
      {
        Message = "Some Message",
      };
      var response = this.ConnectedClient.Index(newProject);
      Assert.IsTrue(response.IsValid);
      Assert.IsNotNullOrEmpty(response.Id);
      Assert.IsNotNullOrEmpty(response.Type);
      Assert.IsNotNullOrEmpty(response.Index);
      Assert.IsNotNullOrEmpty(response.Version);
    }
    [Test]
    public void IndexmanyWithoutIdShouldSetIdFromElasticseach()
    {
      var newProjects = new List<LogClass>
      {
        new LogClass { Message = "Some Message1" },
        new LogClass { Message = "Some Message2" },
        new LogClass { Message = "Some Message3" }
      };
      var response = this.ConnectedClient.IndexMany(newProjects);
      Assert.IsTrue(response.IsValid, response.ConnectionStatus.Result);
      Assert.IsNotEmpty(response.Items);
      Assert.True(response.Items.All(i => i.OK), response.ConnectionStatus.Result);
      Assert.True(response.Items.All(i => !i.Id.IsNullOrEmpty()));
    }
  }
}
{'fraction_non_alphanumeric': 0.10605553696888592, 'fraction_numerical': 0.0020073603211776514, 'mean_word_length': 3.30835734870317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6201778', 'n_tokens_mistral': 897, 'n_tokens_neox': 886, 'n_words': 167}