﻿using System.Net.Http.Formatting;
using EasyApi.Http.MediaTypes;
using NUnit.Framework;

namespace EasyApi.Tests.Http.MediaTypes
{
	[TestFixture(true)]
	[TestFixture(false)]
	[TestOf(typeof(JsonMediaTypeFormatterSyncAdapter))]
	[Parallelizable]
	public class JsonMediaTypeFormatterSyncAdapterTests : SyncMediaTypeFormatterTests
	{
		public JsonMediaTypeFormatterSyncAdapterTests(bool useDataContract)
			: base(new JsonMediaTypeFormatter { UseDataContractJsonSerializer = useDataContract }, new JsonMediaTypeFormatterSyncAdapter(new JsonMediaTypeFormatter { UseDataContractJsonSerializer = useDataContract }))
		{
		}
	}
}