<commit_before>﻿using System;
using System.Xml.Serialization;

using NUnit.Framework;
using SevenDigital.Api.Schema;

namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests
{
	[XmlRoot("response")]
	public class RawStatusResponse
	{
		public Status Status { get; set; }
	}

	[TestFixture]
	public class StatusTests
	{
		[Test]
		public async void Can_hit_endpoint()
		{
			var status = await Api<Status>.Create.Please();

			Assert.That(status, Is.Not.Null);
			Assert.That(status.ServerTime.Day, Is.EqualTo(DateTime.Now.Day));
		}

		[Test]
		public async void TestStatusResponseAs()
		{
			var statusResponse = await Api<Status>.Create.ResponseAs<RawStatusResponse>();

			Assert.That(statusResponse, Is.Not.Null);
			Assert.That(statusResponse.Status, Is.Not.Null);
			Assert.That(statusResponse.Status.ServerTime.Day, Is.EqualTo(DateTime.Now.Day));
		}
	}
}<commit_msg>Fix failing integration test<commit_after>﻿using System;
using System.Xml.Serialization;

using NUnit.Framework;
using SevenDigital.Api.Schema;

namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests
{
	[XmlRoot("response")]
	public class RawStatusResponse
	{
		[XmlElement("serviceStatus")]
		public Status ServiceStatus { get; set; }
	}

	[TestFixture]
	public class StatusTests
	{
		[Test]
		public async void Can_hit_endpoint()
		{
			var status = await Api<Status>.Create.Please();

			Assert.That(status, Is.Not.Null);
			Assert.That(status.ServerTime.Day, Is.EqualTo(DateTime.Now.Day));
		}

		[Test]
		public async void TestStatusResponseAs()
		{
			var statusResponse = await Api<Status>.Create.ResponseAs<RawStatusResponse>();

			Assert.That(statusResponse, Is.Not.Null);
			Assert.That(statusResponse.ServiceStatus, Is.Not.Null);
			Assert.That(statusResponse.ServiceStatus.ServerTime.Day, Is.EqualTo(DateTime.Now.Day));
		}
	}
}
{'fraction_non_alphanumeric': 0.12622415669205658, 'fraction_numerical': 0.0, 'mean_word_length': 4.838095238095238, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1567878', 'n_tokens_mistral': 637, 'n_tokens_neox': 586, 'n_words': 106}