<commit_before>﻿using System.Net.Http;
using Jess.Tests.Util;
using Shouldly;
using Xunit;

namespace Jess.Tests.Acceptance.Hydration
{
	public class WhenHydrating : AcceptanceBase
	{
		public WhenHydrating()
		{
			Remote.RespondsTo(
				"/candidate/ref/123",
				request => new DehydratedResponse(Resource.PersonWithOneRef));

			Remote.RespondsTo(
				"/candidate/ref/456",
				request => new JsonResponse(Resource.PersonWithOneRef));

		}

		[Fact]
		public void A_valid_request()
		{
			var response = Hydrator.MakeRequest("/candidate/ref/123", new HttpRequestMessage());

			var body = response.Content.ReadAsStringAsync().Result;

			body.ShouldNotBeEmpty();
			body.ShouldNotContain("!ref");
			body.ShouldNotBe(Resource.PersonWithOneRef);
		}

		[Fact]
		public void Without_a_hydrate_header()
		{
			var response = Hydrator.MakeRequest("/candidate/ref/456", new HttpRequestMessage());

			var body = response.Content.ReadAsStringAsync().Result;

			body.ShouldNotBeEmpty();
			body.ShouldBe(Resource.PersonWithOneRef);
		}

	}
}<commit_msg>tests: remove superfluous test<commit_after>﻿using System.Net.Http;
using Jess.Tests.Util;
using Shouldly;
using Xunit;

namespace Jess.Tests.Acceptance.Hydration
{
	public class WhenHydrating : AcceptanceBase
	{
		public WhenHydrating()
		{
			Remote.RespondsTo(
				"/candidate/ref/123",
				request => new DehydratedResponse(Resource.PersonWithOneRef));

			Remote.RespondsTo(
				"/candidate/ref/456",
				request => new JsonResponse(Resource.PersonWithOneRef));

		}

		[Fact]
		public void Without_a_hydrate_header()
		{
			var response = Hydrator.MakeRequest("/candidate/ref/456", new HttpRequestMessage());

			var body = response.Content.ReadAsStringAsync().Result;

			body.ShouldNotBeEmpty();
			body.ShouldBe(Resource.PersonWithOneRef);
		}

	}
}
{'fraction_non_alphanumeric': 0.12223451327433628, 'fraction_numerical': 0.011615044247787611, 'mean_word_length': 4.416167664670659, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7313197', 'n_tokens_mistral': 697, 'n_tokens_neox': 578, 'n_words': 98}