diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d9edd238..00000000
--- a/.gitignore
+++ /dev/null
@@ -1,184 +0,0 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-
-# User-specific files
-*.suo
-*.user
-*.sln.docstates
-.vs/
-
-# Build results
-[Dd]ebug/
-[Dd]ebugPublic/
-[Rr]elease/
-[Rr]eleases/
-x64/
-x86/
-build/
-bld/
-[Bb]in/
-[Oo]bj/
-
-# Roslyn cache directories
-*.ide/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-#NUNIT
-*.VisualState.xml
-TestResult.xml
-
-# Build Results of an ATL Project
-[Dd]ebugPS/
-[Rr]eleasePS/
-dlldata.c
-
-*_i.c
-*_p.c
-*_i.h
-*.ilk
-*.meta
-*.obj
-*.pch
-*.pdb
-*.pgc
-*.pgd
-*.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*.log
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.svclog
-*.scc
-
-# Chutzpah Test files
-_Chutzpah*
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opensdf
-*.sdf
-*.cachefile
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-
-# TFS 2012 Local Workspace
-$tf/
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-*.DotSettings.user
-
-# JustCode is a .NET coding addin-in
-.JustCode
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# NCrunch
-_NCrunch_*
-.*crunch*.local.xml
-
-# MightyMoose
-*.mm.*
-AutoTest.Net/
-
-# Web workbench (sass)
-.sass-cache/
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.[Pp]ublish.xml
-*.azurePubxml
-# TODO: Comment the next line if you want to checkin your web deploy settings
-# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
-*.publishproj
-
-# NuGet Packages
-*.nupkg
-# The packages folder can be ignored because of Package Restore
-**/packages/*
-# except build/, which is used as an MSBuild target.
-!**/packages/build/
-# If using the old MSBuild-Integrated Package Restore, uncomment this:
-#!**/packages/repositories.config
-
-# Windows Azure Build Output
-csx/
-*.build.csdef
-
-# Windows Store app package directory
-AppPackages/
-
-# Others
-sql/
-*.Cache
-ClientBin/
-[Ss]tyle[Cc]op.*
-~$*
-*~
-*.dbmdl
-*.dbproj.schemaview
-*.pfx
-*.publishsettings
-node_modules/
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file
-# to a newer Visual Studio version. Backup files are not needed,
-# because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-
-# SQL Server files
-*.mdf
-*.ldf
-
-# Business Intelligence projects
-*.rdl.data
-*.bim.layout
-*.bim_*.settings
-
-# Microsoft Fakes
-FakesAssemblies/
diff --git a/.nuget/NuGet.Config b/.nuget/NuGet.Config
deleted file mode 100644
index 6a318ad9..00000000
--- a/.nuget/NuGet.Config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.nuget/NuGet.exe b/.nuget/NuGet.exe
deleted file mode 100644
index c296edf1..00000000
Binary files a/.nuget/NuGet.exe and /dev/null differ
diff --git a/.nuget/NuGet.targets b/.nuget/NuGet.targets
deleted file mode 100644
index 428c8dad..00000000
--- a/.nuget/NuGet.targets
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
- $(MSBuildProjectDirectory)\..\
-
-
- false
-
-
- false
-
-
- true
-
-
- false
-
-
-
-
-
-
-
-
-
-
- $([System.IO.Path]::Combine($(SolutionDir), ".nuget"))
-
-
-
-
- $(SolutionDir).nuget
-
-
-
- $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config
- $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config
-
-
-
- $(MSBuildProjectDirectory)\packages.config
- $(PackagesProjectConfig)
-
-
-
-
- $(NuGetToolsPath)\NuGet.exe
- @(PackageSource)
-
- "$(NuGetExePath)"
- mono --runtime=v4.0.30319 "$(NuGetExePath)"
-
- $(TargetDir.Trim('\\'))
-
- -RequireConsent
- -NonInteractive
-
- "$(SolutionDir) "
- "$(SolutionDir)"
-
-
- $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)
- $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols
-
-
-
- RestorePackages;
- $(BuildDependsOn);
-
-
-
-
- $(BuildDependsOn);
- BuildPackage;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AcceptanceTestsBase.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AcceptanceTestsBase.cs
deleted file mode 100644
index d0594337..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AcceptanceTestsBase.cs
+++ /dev/null
@@ -1,186 +0,0 @@
-using System;
-using System.Data.Common;
-using System.Globalization;
-using System.IO;
-using System.Net;
-using System.Net.Http;
-using System.Net.Http.Formatting;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using FluentAssertions;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using JSONAPI.Json;
-using Microsoft.Owin.Testing;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using Owin;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public abstract class AcceptanceTestsBase
- {
- private const string JsonApiContentType = "application/vnd.api+json";
- private static readonly Regex GuidRegex = new Regex(@"\b[A-F0-9]{8}(?:-[A-F0-9]{4}){3}-[A-F0-9]{12}\b", RegexOptions.IgnoreCase);
- //private static readonly Regex StackTraceRegex = new Regex(@"""stackTrace"":[\s]*""[\w\:\\\.\s\,\-]*""");
- private static readonly Regex StackTraceRegex = new Regex(@"""stackTrace""[\s]*:[\s]*"".*?""");
- protected static Uri BaseUri = new Uri("https://www.example.com");
-
- protected static DbConnection GetEffortConnection()
- {
- return TestHelpers.GetEffortConnection(@"Data");
- }
-
- protected virtual async Task AssertResponseContent(HttpResponseMessage response, string expectedResponseTextResourcePath, HttpStatusCode expectedStatusCode, bool redactErrorData = false)
- {
- var responseContent = await response.Content.ReadAsStringAsync();
-
- var expectedResponse = ExpectedResponse(expectedResponseTextResourcePath);
- string actualResponse;
- if (redactErrorData)
- {
- var redactedResponse = GuidRegex.Replace(responseContent, "{{SOME_GUID}}");
- actualResponse = StackTraceRegex.Replace(redactedResponse, "\"stackTrace\":\"{{STACK_TRACE}}\"");
- actualResponse.Should().Be(expectedResponse);
- }
- else
- {
- actualResponse = responseContent;
- JsonSerializerSettings settings = new JsonSerializerSettings
- {
- DateTimeZoneHandling = DateTimeZoneHandling.Utc,
- DateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffff+00:00",
- Culture = CultureInfo.InvariantCulture,
- Formatting = Formatting.Indented
- };
-
- var actualResponseJObject = JsonConvert.DeserializeObject(actualResponse) as JObject;
- var expectedResponseJObject = JsonConvert.DeserializeObject(expectedResponse) as JObject;
- var equals = JToken.DeepEquals(actualResponseJObject, expectedResponseJObject);
- if (!equals)
- {
- Assert.Fail("should be: " + JsonConvert.SerializeObject(expectedResponseJObject, settings) + "\n but was: " + JsonConvert.SerializeObject(actualResponseJObject, settings));
- }
- }
-
- response.Content.Headers.ContentType.MediaType.Should().Be(JsonApiContentType);
- response.Content.Headers.ContentType.CharSet.Should().Be("utf-8");
-
- response.StatusCode.Should().Be(expectedStatusCode);
- }
-
- protected virtual string ExpectedResponse(string expectedResponseTextResourcePath)
- {
- var expectedResponse =
- JsonHelpers.MinifyJson(TestHelpers.ReadEmbeddedFile(expectedResponseTextResourcePath));
- return expectedResponse;
- }
-
- #region GET
-
- protected async Task SubmitGet(DbConnection effortConnection, string requestPath)
- {
- using (var server = TestServer.Create(app =>
- {
- var startup = new Startup(() => new TestDbContext(effortConnection, false));
- StartupConfiguration(startup, app);
- }))
- {
- var uri = new Uri(BaseUri, requestPath);
- var response = await server.CreateRequest(uri.ToString()).AddHeader("Accept", JsonApiContentType).GetAsync();
- return response;
- }
- }
-
- #endregion
- #region POST
-
- protected async Task SubmitPost(DbConnection effortConnection, string requestPath, string requestDataTextResourcePath)
- {
- using (var server = TestServer.Create(app =>
- {
- var startup = new Startup(() => new TestDbContext(effortConnection, false));
- StartupConfiguration(startup, app);
- }))
- {
- var uri = new Uri(BaseUri, requestPath);
- var requestContent = TestHelpers.ReadEmbeddedFile(requestDataTextResourcePath);
- var response = await server
- .CreateRequest(uri.ToString())
- .AddHeader("Accept", JsonApiContentType)
- .And(request =>
- {
- request.Content = new StringContent(requestContent, Encoding.UTF8, "application/vnd.api+json");
- })
- .PostAsync();
- return response;
- }
- }
-
- #endregion
- #region PATCH
-
- protected async Task SubmitPatch(DbConnection effortConnection, string requestPath, string requestDataTextResourcePath)
- {
- using (var server = TestServer.Create(app =>
- {
- var startup = new Startup(() => new TestDbContext(effortConnection, false));
- StartupConfiguration(startup, app);
- }))
- {
- var uri = new Uri(BaseUri, requestPath);
- var requestContent = TestHelpers.ReadEmbeddedFile(requestDataTextResourcePath);
- var response = await server
- .CreateRequest(uri.ToString())
- .AddHeader("Accept", JsonApiContentType)
- .And(request =>
- {
- request.Content = new StringContent(requestContent, Encoding.UTF8, "application/vnd.api+json");
- }).SendAsync("PATCH");
- return response;
- }
- }
-
- #endregion
- #region DELETE
-
- protected async Task SubmitDelete(DbConnection effortConnection, string requestPath)
- {
- using (var server = TestServer.Create(app =>
- {
- var startup = new Startup(() => new TestDbContext(effortConnection, false));
- StartupConfiguration(startup, app);
- }))
- {
- var uri = new Uri(BaseUri, requestPath);
- var response = await server
- .CreateRequest(uri.ToString())
- .AddHeader("Accept", JsonApiContentType)
- .SendAsync("DELETE");
- return response;
- }
- }
-
- #endregion
-
-
-
- #region configure startup
-
- ///
- /// Startup process was divided into 4 steps to support better acceptance tests.
- /// This method can be overridden by subclass to change behavior of setup.
- ///
- ///
- ///
- protected virtual void StartupConfiguration(Startup startup, IAppBuilder app)
- {
- startup.Configuration(app);
- }
-
- #endregion
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/App.config b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/App.config
deleted file mode 100644
index da9a789a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/App.config
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AttributeSerializationTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AttributeSerializationTests.cs
deleted file mode 100644
index fd06bda9..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/AttributeSerializationTests.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class AttributeSerializationTests : AcceptanceTestsBase
- {
- [TestMethod]
- public async Task Attributes_of_various_types_serialize_correctly()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "samples");
-
- await AssertResponseContent(response, @"Fixtures\AttributeSerialization\Attributes_of_various_types_serialize_correctly.json", HttpStatusCode.OK);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/BaseUrlTest.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/BaseUrlTest.cs
deleted file mode 100644
index cda8ccf8..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/BaseUrlTest.cs
+++ /dev/null
@@ -1,166 +0,0 @@
-using System;
-using System.Data.SqlTypes;
-using System.Linq;
-using System.Net;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using FluentAssertions;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using JSONAPI.Http;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using Owin;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class BaseUrlTest : AcceptanceTestsBase
- {
- [TestInitialize]
- public void TestInit()
- {
- if (!BaseUri.AbsoluteUri.EndsWith("api/"))
- {
- BaseUri = new Uri(BaseUri.AbsoluteUri + "api/");
- }
- }
- [TestCleanup]
- public void TestCleanup()
- {
- if (BaseUri.AbsoluteUri.EndsWith("api/"))
- {
- BaseUri = new Uri(BaseUri.AbsoluteUri.Substring(0,BaseUri.AbsoluteUri.Length -4));
- }
- }
-
- // custom startup process for this test
- protected override void StartupConfiguration(Startup startup, IAppBuilder app)
- {
-
- var configuration = startup.BuildConfiguration();
- // here we add the custom BaseUrlServcie
- configuration.CustomBaseUrlService = new BaseUrlService("api");
- var configurator = startup.BuildAutofacConfigurator(app);
- var httpConfig = startup.BuildHttpConfiguration();
- startup.MergeAndSetupConfiguration(app, configurator, httpConfig, configuration);
- }
-
- // custom expected response method
- protected override string ExpectedResponse(string expectedResponseTextResourcePath)
- {
- var expected = base.ExpectedResponse(expectedResponseTextResourcePath);
- return Regex.Replace(expected, @"www\.example\.com\/", @"www.example.com/api/");
- }
-
- // copied some tests in here
-
- // copied from ComputedIdTests
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Language.csv", @"Data")]
- [DeploymentItem(@"Data\LanguageUserLink.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_resource_with_computed_id_by_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "language-user-links/9001_402");
-
- await AssertResponseContent(response, @"Fixtures\ComputedId\Responses\Get_resource_with_computed_id_by_id_Response.json", HttpStatusCode.OK);
- }
- }
-
-
- // copied from CreatingResourcesTests
-
-
- [TestMethod]
- [DeploymentItem(@"Data\PostLongId.csv", @"Data")]
- public async Task PostLongId_with_client_provided_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "post-long-ids", @"Fixtures\CreatingResources\Requests\PostLongId_with_client_provided_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\PostLongId_with_client_provided_id_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsLongId.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.Id == 205);
- actualPost.Id.Should().Be(205);
- actualPost.Title.Should().Be("Added post");
- actualPost.Content.Should().Be("Added post content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 03, 11, 04, 31, 0, new TimeSpan(0)));
- }
- }
- }
-
-
-
- // copied from DeletingResourcesTests
-
- [TestMethod]
- [DeploymentItem(@"Data\PostID.csv", @"Data")]
- public async Task DeleteID()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitDelete(effortConnection, "post-i-ds/203");
-
- var responseContent = await response.Content.ReadAsStringAsync();
- responseContent.Should().Be("");
- response.StatusCode.Should().Be(HttpStatusCode.NoContent);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsID.ToArray();
- allPosts.Length.Should().Be(3);
- var actualPosts = allPosts.FirstOrDefault(t => t.ID == "203");
- actualPosts.Should().BeNull();
- }
- }
- }
-
-
-
- // copied from FetchingResourcesTests
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetWithFilter()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts?filter[title]=Post 4");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\GetWithFilterResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetById()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/202");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\GetByIdResponse.json", HttpStatusCode.OK);
- }
- }
-
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ComputedIdTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ComputedIdTests.cs
deleted file mode 100644
index 64c09347..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ComputedIdTests.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class ComputedIdTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Language.csv", @"Data")]
- [DeploymentItem(@"Data\LanguageUserLink.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_all_of_resource_with_computed_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "language-user-links");
-
- await AssertResponseContent(response, @"Fixtures\ComputedId\Responses\Get_all_of_resource_with_computed_id_Response.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Language.csv", @"Data")]
- [DeploymentItem(@"Data\LanguageUserLink.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_resource_with_computed_id_by_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "language-user-links/9001_402");
-
- await AssertResponseContent(response, @"Fixtures\ComputedId\Responses\Get_resource_with_computed_id_by_id_Response.json", HttpStatusCode.OK);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/CreatingResourcesTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/CreatingResourcesTests.cs
deleted file mode 100644
index b189e933..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/CreatingResourcesTests.cs
+++ /dev/null
@@ -1,145 +0,0 @@
-using System;
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
-using FluentAssertions;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class CreatingResourcesTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Post_with_client_provided_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "posts", @"Fixtures\CreatingResources\Requests\Post_with_client_provided_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\Post_with_client_provided_id_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.Id == "205");
- actualPost.Id.Should().Be("205");
- actualPost.Title.Should().Be("Added post");
- actualPost.Content.Should().Be("Added post content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 03, 11, 04, 31, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostID.csv", @"Data")]
- public async Task PostID_with_client_provided_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "post-i-ds", @"Fixtures\CreatingResources\Requests\PostID_with_client_provided_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\PostID_with_client_provided_id_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsID.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.ID == "205");
- actualPost.ID.Should().Be("205");
- actualPost.Title.Should().Be("Added post");
- actualPost.Content.Should().Be("Added post content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 03, 11, 04, 31, 0, new TimeSpan(0)));
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostLongId.csv", @"Data")]
- public async Task PostLongId_with_client_provided_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "post-long-ids", @"Fixtures\CreatingResources\Requests\PostLongId_with_client_provided_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\PostLongId_with_client_provided_id_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsLongId.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.Id == 205);
- actualPost.Id.Should().Be(205);
- actualPost.Title.Should().Be("Added post");
- actualPost.Content.Should().Be("Added post content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 03, 11, 04, 31, 0, new TimeSpan(0)));
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Post_with_empty_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "posts", @"Fixtures\CreatingResources\Requests\Post_with_empty_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\Post_with_empty_id_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.Id == "230");
- actualPost.Id.Should().Be("230");
- actualPost.Title.Should().Be("New post");
- actualPost.Content.Should().Be("The server generated my ID");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 04, 13, 12, 09, 0, new TimeSpan(0, 3, 0, 0)));
- actualPost.AuthorId.Should().Be("401");
- }
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Post_with_empty_id_and_include()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPost(effortConnection, "posts?include=author", @"Fixtures\CreatingResources\Requests\Post_with_empty_id_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\CreatingResources\Responses\Post_with_empty_id_and_include_author_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(5);
- var actualPost = allPosts.First(t => t.Id == "230");
- actualPost.Id.Should().Be("230");
- actualPost.Title.Should().Be("New post");
- actualPost.Content.Should().Be("The server generated my ID");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 04, 13, 12, 09, 0, new TimeSpan(0, 3, 0, 0)));
- actualPost.AuthorId.Should().Be("401");
- }
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Building.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Building.csv
deleted file mode 100644
index 5faa1c59..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Building.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-Id,Address,OwnerCompanyId
-"1000","123 Sesame St.","1100"
-"1001","1600 Pennsylvania Avenue",
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Child.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Child.csv
deleted file mode 100644
index b529aab6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Child.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-Id,ChildDescription,MasterId
-7500,"Child 1 Description",1500
-7501,"Child 2 Description",1501
-7502,"Child 3 Description",1501
-7503,"Child 4 Description",1503
-7504,"Child 5 Description",1503
-7505,"Child 6 Description",1503
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Comment.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Comment.csv
deleted file mode 100644
index 6260de5b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Comment.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-Id,Text,Created,PostId,AuthorId
-"101","Comment 1","2015-01-31T14:30Z","201","403"
-"102","Comment 2","2015-01-31T14:35Z","201","402"
-"103","Comment 3","2015-01-31T14:41Z","201","403"
-"104","Comment 4","2015-02-05T09:08Z","202","403"
-"105","Comment 5","2015-02-06T14:19Z","203","401"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Company.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Company.csv
deleted file mode 100644
index 4dc5014b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Company.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-Id,Name
-"1100","Big Bird and Friends"
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Language.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Language.csv
deleted file mode 100644
index 78bcf317..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Language.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Id,Name
-"9000","English"
-"9001","French"
-"9002","Spanish"
-"9003","German"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/LanguageUserLink.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/LanguageUserLink.csv
deleted file mode 100644
index 88310b3b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/LanguageUserLink.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-LanguageId,UserId,FluencyLevel
-"9000","401","Native"
-"9001","401","Conversational"
-"9002","401","Fluent"
-"9001","402","Native"
-"9002","403","Native"
-"9003","404","Native"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Master.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Master.csv
deleted file mode 100644
index 2a582cc4..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Master.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Id,Description
-1500,"Master 1 Description"
-1501,"Master 2 Description"
-1502,"Master 3 Description"
-1503,"Master 4 Description"
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Officer.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Officer.csv
deleted file mode 100644
index 3d36dcbe..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Officer.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-OfficerId,Name,Rank
-"12000","James T. Kirk","Captain"
-"12010","Jean-Luc Picard","Captain"
-"12011","William T. Riker","Commander"
-"12012","Data","Lt. Commander"
-"12013","Deanna Troi","Lt. Commander"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Post.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Post.csv
deleted file mode 100644
index 08417948..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Post.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Id,Title,Content,Created,AuthorId
-"201","Post 1","Post 1 content","2015-01-31T14:00Z","401"
-"202","Post 2","Post 2 content","2015-02-05T08:10Z","401"
-"203","Post 3","Post 3 content","2015-02-07T11:11Z","401"
-"204","Post 4","Post 4 content","2015-02-08T06:59Z","402"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostID.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostID.csv
deleted file mode 100644
index 544b39c7..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostID.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-ID,Title,Content,Created,AuthorId
-"201","Post 1","Post 1 content","2015-01-31T14:00Z"
-"202","Post 2","Post 2 content","2015-02-05T08:10Z"
-"203","Post 3","Post 3 content","2015-02-07T11:11Z"
-"204","Post 4","Post 4 content","2015-02-08T06:59Z"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostLongId.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostLongId.csv
deleted file mode 100644
index ac3f5a42..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostLongId.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Id,Title,Content,Created,AuthorId
-201,"Post 1","Post 1 content","2015-01-31T14:00Z"
-202,"Post 2","Post 2 content","2015-02-05T08:10Z"
-203,"Post 3","Post 3 content","2015-02-07T11:11Z"
-204,"Post 4","Post 4 content","2015-02-08T06:59Z"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostTagLink.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostTagLink.csv
deleted file mode 100644
index f982e30d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/PostTagLink.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-PostId,TagId
-"201","301"
-"201","302"
-"202","302"
-"202","303"
-"203","303"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Starship.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Starship.csv
deleted file mode 100644
index 7214a1df..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Starship.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-StarshipId,Name,StarshipClassId
-"NCC-1701","USS Enterprise","80001"
-"NCC-1701-D","USS Enterprise","80002"
-"NCC-74656","USS Voyager","80003"
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipClass.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipClass.csv
deleted file mode 100644
index 4aeb6903..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipClass.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-StarshipClassId,Name
-"80001","Constitution"
-"80002","Galaxy"
-"80003","Intrepid"
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipOfficerLink.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipOfficerLink.csv
deleted file mode 100644
index be97ff49..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/StarshipOfficerLink.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-StarshipId,OfficerId,Position
-"NCC-1701","12000","Commanding Officer"
-"NCC-1701-D","12010","Commanding Officer"
-"NCC-1701-D","12011","First Officer"
-"NCC-1701-D","12012","Second Officer"
-"NCC-1701-D","12013","Ship's Counselor"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Tag.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Tag.csv
deleted file mode 100644
index 0ef35596..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/Tag.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-Id,Name
-"301","Tag A"
-"302","Tag B"
-"303","Tag C"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/User.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/User.csv
deleted file mode 100644
index d1c22ad6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/User.csv
+++ /dev/null
@@ -1,11 +0,0 @@
-Id,FirstName,LastName
-"401","Alice","Smith"
-"402","Bob","Jones"
-"403","Charlie","Michaels"
-"404","Richard","Smith"
-"405","Michelle","Johnson"
-"406","Ed","Burns"
-"407","Thomas","Potter"
-"408","Pat","Morgan"
-"409","Charlie","Burns"
-"410","Sally","Burns"
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/UserGroup.csv b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/UserGroup.csv
deleted file mode 100644
index 30ab4160..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Data/UserGroup.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-Id,Name
-"501","Admin users"
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/DeletingResourcesTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/DeletingResourcesTests.cs
deleted file mode 100644
index f77715f5..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/DeletingResourcesTests.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
-using FluentAssertions;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class DeletingResourcesTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Delete()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitDelete(effortConnection, "posts/203");
-
- var responseContent = await response.Content.ReadAsStringAsync();
- responseContent.Should().Be("");
- response.StatusCode.Should().Be(HttpStatusCode.NoContent);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(3);
- var actualPosts = allPosts.FirstOrDefault(t => t.Id == "203");
- actualPosts.Should().BeNull();
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostID.csv", @"Data")]
- public async Task DeleteID()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitDelete(effortConnection, "post-i-ds/203");
-
- var responseContent = await response.Content.ReadAsStringAsync();
- responseContent.Should().Be("");
- response.StatusCode.Should().Be(HttpStatusCode.NoContent);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsID.ToArray();
- allPosts.Length.Should().Be(3);
- var actualPosts = allPosts.FirstOrDefault(t => t.ID == "203");
- actualPosts.Should().BeNull();
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostLongId.csv", @"Data")]
- public async Task DeleteLongId()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitDelete(effortConnection, "post-long-ids/203");
-
- var responseContent = await response.Content.ReadAsStringAsync();
- responseContent.Should().Be("");
- response.StatusCode.Should().Be(HttpStatusCode.NoContent);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsLongId.ToArray();
- allPosts.Length.Should().Be(3);
- var actualPosts = allPosts.FirstOrDefault(t => t.Id == 203);
- actualPosts.Should().BeNull();
- }
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ErrorsTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ErrorsTests.cs
deleted file mode 100644
index f1c663c6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/ErrorsTests.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class ErrorsTests : AcceptanceTestsBase
- {
- [TestMethod]
- public async Task Controller_action_throws_exception()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "trees");
-
- await AssertResponseContent(response, @"Fixtures\Errors\Controller_action_throws_exception.json", HttpStatusCode.InternalServerError, true);
- }
- }
-
- [TestMethod]
- [Ignore]
- public async Task Controller_does_not_exist()
- {
- // TODO: Currently ignoring this test because it doesn't seem possible to intercept 404s before they make it to the formatter
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "foo");
-
- await AssertResponseContent(response, @"Fixtures\Errors\Controller_does_not_exist.json", HttpStatusCode.NotFound, true);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/FetchingResourcesTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/FetchingResourcesTests.cs
deleted file mode 100644
index 39eb2938..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/FetchingResourcesTests.cs
+++ /dev/null
@@ -1,251 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class FetchingResourcesTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetAll()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\GetAllResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetWithFilter()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts?filter[title]=Post 4");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\GetWithFilterResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetById()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/202");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\GetByIdResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_resource_by_id_that_doesnt_exist()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/3000");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_resource_by_id_that_doesnt_exist.json", HttpStatusCode.NotFound, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\UserGroup.csv", @"Data")]
- public async Task Get_dasherized_resource()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "user-groups");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_dasherized_resource.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_many()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/201/comments");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_related_to_many_response.json", HttpStatusCode.OK);
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_many_included()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/201/comments?include=author");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_related_to_many_include_response.json", HttpStatusCode.OK);
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_many_included_external()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users/401/posts?include=tags");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_related_to_many_include_external_response.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_one()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/201/author");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_related_to_one_response.json", HttpStatusCode.OK);
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_included_to_one()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/201?include=author");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_included_to_one_response.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_one_for_resource_that_doesnt_exist()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/3000/author");
-
- await AssertResponseContent(response,
- @"Fixtures\FetchingResources\Get_related_to_one_for_resource_that_doesnt_exist.json",
- HttpStatusCode.NotFound, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_to_many_for_resource_that_doesnt_exist()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/3000/tags");
-
- await AssertResponseContent(response,
- @"Fixtures\FetchingResources\Get_related_to_many_for_resource_that_doesnt_exist.json",
- HttpStatusCode.NotFound, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get_related_resource_for_relationship_that_doesnt_exist()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts/201/bananas");
-
- await AssertResponseContent(response,
- @"Fixtures\FetchingResources\Get_related_resource_for_relationship_that_doesnt_exist.json",
- HttpStatusCode.NotFound, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Building.csv", @"Data")]
- [DeploymentItem(@"Data\Company.csv", @"Data")]
- public async Task Get_related_to_one_where_it_is_null()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "buildings/1001/owner");
-
- await AssertResponseContent(response,
- @"Fixtures\FetchingResources\Get_related_to_one_where_it_is_null.json",
- HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Master.csv", @"Data")]
- [DeploymentItem(@"Data\Child.csv", @"Data")]
- public async Task Get_related_to_many_integer_key()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "masters/1501/children");
-
- await AssertResponseContent(response, @"Fixtures\FetchingResources\Get_related_to_many_integer_key_response.json", HttpStatusCode.OK);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/AttributeSerialization/Attributes_of_various_types_serialize_correctly.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/AttributeSerialization/Attributes_of_various_types_serialize_correctly.json
deleted file mode 100644
index ca94936a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/AttributeSerialization/Attributes_of_various_types_serialize_correctly.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "data": [
- {
- "type": "samples",
- "id": "1",
- "attributes": {
- "boolean-field": false,
- "byte-field": 0,
- "complex-attribute-field": null,
- "date-time-field": "0001-01-01T00:00:00",
- "date-time-offset-field": "0001-01-01T00:00:00.0000000+00:00",
- "decimal-field": "0",
- "double-field": 0.0,
- "enum-field": 0,
- "guid-field": "00000000-0000-0000-0000-000000000000",
- "int16-field": 0,
- "int32-field": 0,
- "int64-field": 0,
- "j-token-array-field": null,
- "j-token-object-field": null,
- "j-token-string-field": null,
- "nullable-boolean-field": false,
- "nullable-byte-field": null,
- "nullable-date-time-field": null,
- "nullable-date-time-offset-field": null,
- "nullable-decimal-field": null,
- "nullable-double-field": null,
- "nullable-enum-field": null,
- "nullable-guid-field": null,
- "nullable-int16-field": null,
- "nullable-int32-field": null,
- "nullable-int64-field": null,
- "nullable-sbyte-field": null,
- "nullable-single-field": null,
- "nullable-uint16-field": null,
- "nullable-uint32-field": null,
- "nullable-uint64-field": null,
- "sbyte-field": 0,
- "single-field": 0.0,
- "string-field": null,
- "uint16-field": 0,
- "uint32-field": 0,
- "uint64-field": 0
- }
- },
- {
- "type": "samples",
- "id": "2",
- "attributes": {
- "boolean-field": true,
- "byte-field": 253,
- "complex-attribute-field": {
- "foo": {
- "baz": [ 11 ]
- },
- "bar": 5
- },
- "date-time-field": "1776-07-04T00:00:00",
- "date-time-offset-field": "1776-07-04T00:00:00.0000000-05:00",
- "decimal-field": "1056789.123",
- "double-field": 1056789.123,
- "enum-field": 1,
- "guid-field": "6566f9b4-5245-40de-890d-98b40a4ad656",
- "int16-field": 32000,
- "int32-field": 2000000000,
- "int64-field": 9223372036854775807,
- "j-token-array-field": [
- {
- "my-field1": "George Washington",
- "overridden-field2": null,
- "MyField3": 216
- },
- {
- "my-field1": "Thomas Jefferson",
- "overridden-field2": false,
- "MyField3": 631
- }
- ],
- "j-token-object-field": {
- "my-field1": "Abraham Lincoln",
- "overridden-field2": true,
- "MyField3": 439
- },
- "j-token-string-field": "Andrew Jackson",
- "nullable-boolean-field": true,
- "nullable-byte-field": 253,
- "nullable-date-time-field": "1776-07-04T00:00:00",
- "nullable-date-time-offset-field": "1776-07-04T00:00:00.0000000-05:00",
- "nullable-decimal-field": "1056789.123",
- "nullable-double-field": 1056789.123,
- "nullable-enum-field": 2,
- "nullable-guid-field": "3d1fb81e-43ee-4d04-af91-c8a326341293",
- "nullable-int16-field": 32000,
- "nullable-int32-field": 2000000000,
- "nullable-int64-field": 9223372036854775807,
- "nullable-sbyte-field": 123,
- "nullable-single-field": 1056789.13,
- "nullable-uint16-field": 64000,
- "nullable-uint32-field": 3000000000,
- "nullable-uint64-field": 9223372036854775808,
- "sbyte-field": 123,
- "single-field": 1056789.13,
- "string-field": "Some string 156",
- "uint16-field": 64000,
- "uint32-field": 3000000000,
- "uint64-field": 9223372036854775808
- }
- }
- ]
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_all_of_resource_with_computed_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_all_of_resource_with_computed_id_Response.json
deleted file mode 100644
index 73e17342..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_all_of_resource_with_computed_id_Response.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "data": [
- {
- "type": "language-user-links",
- "id": "9000_401",
- "attributes": {
- "fluency-level": "Native"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9000_401/relationships/language",
- "related": "https://www.example.com/language-user-links/9000_401/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9000_401/relationships/user",
- "related": "https://www.example.com/language-user-links/9000_401/user"
- }
- }
- }
- },
- {
- "type": "language-user-links",
- "id": "9001_401",
- "attributes": {
- "fluency-level": "Conversational"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_401/relationships/language",
- "related": "https://www.example.com/language-user-links/9001_401/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_401/relationships/user",
- "related": "https://www.example.com/language-user-links/9001_401/user"
- }
- }
- }
- },
- {
- "type": "language-user-links",
- "id": "9001_402",
- "attributes": {
- "fluency-level": "Native"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_402/relationships/language",
- "related": "https://www.example.com/language-user-links/9001_402/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_402/relationships/user",
- "related": "https://www.example.com/language-user-links/9001_402/user"
- }
- }
- }
- },
- {
- "type": "language-user-links",
- "id": "9002_401",
- "attributes": {
- "fluency-level": "Fluent"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9002_401/relationships/language",
- "related": "https://www.example.com/language-user-links/9002_401/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9002_401/relationships/user",
- "related": "https://www.example.com/language-user-links/9002_401/user"
- }
- }
- }
- },
- {
- "type": "language-user-links",
- "id": "9002_403",
- "attributes": {
- "fluency-level": "Native"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9002_403/relationships/language",
- "related": "https://www.example.com/language-user-links/9002_403/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9002_403/relationships/user",
- "related": "https://www.example.com/language-user-links/9002_403/user"
- }
- }
- }
- },
- {
- "type": "language-user-links",
- "id": "9003_404",
- "attributes": {
- "fluency-level": "Native"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9003_404/relationships/language",
- "related": "https://www.example.com/language-user-links/9003_404/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9003_404/relationships/user",
- "related": "https://www.example.com/language-user-links/9003_404/user"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_resource_with_computed_id_by_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_resource_with_computed_id_by_id_Response.json
deleted file mode 100644
index fde48b61..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/ComputedId/Responses/Get_resource_with_computed_id_by_id_Response.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "data": {
- "type": "language-user-links",
- "id": "9001_402",
- "attributes": {
- "fluency-level": "Native"
- },
- "relationships": {
- "language": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_402/relationships/language",
- "related": "https://www.example.com/language-user-links/9001_402/language"
- }
- },
- "user": {
- "links": {
- "self": "https://www.example.com/language-user-links/9001_402/relationships/user",
- "related": "https://www.example.com/language-user-links/9001_402/user"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostID_with_client_provided_id_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostID_with_client_provided_id_Request.json
deleted file mode 100644
index 41424e02..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostID_with_client_provided_id_Request.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-i-ds",
- "id": "205",
- "attributes": {
- "title": "Added post",
- "content": "Added post content",
- "created": "2015-03-11T04:31:00+00:00"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostLongId_with_client_provided_id_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostLongId_with_client_provided_id_Request.json
deleted file mode 100644
index b52fe5c4..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/PostLongId_with_client_provided_id_Request.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-long-ids",
- "id": "205",
- "attributes": {
- "title": "Added post",
- "content": "Added post content",
- "created": "2015-03-11T04:31:00+00:00"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_client_provided_id_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_client_provided_id_Request.json
deleted file mode 100644
index c49fe508..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_client_provided_id_Request.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "205",
- "attributes": {
- "title": "Added post",
- "content": "Added post content",
- "created": "2015-03-11T04:31:00+00:00"
- },
- "relationships": {
- "author": {
- "data": {
- "type": "users",
- "id": "401"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_empty_id_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_empty_id_Request.json
deleted file mode 100644
index 8d2759bd..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Requests/Post_with_empty_id_Request.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "data": {
- "type": "posts",
- "attributes": {
- "title": "New post",
- "content": "The server generated my ID",
- "created": "2015-04-13T12:09:00+03:00"
- },
- "relationships": {
- "author": {
- "data": {
- "type": "users",
- "id": "401"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostID_with_client_provided_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostID_with_client_provided_id_Response.json
deleted file mode 100644
index 7122e9e9..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostID_with_client_provided_id_Response.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-i-ds",
- "id": "205",
- "attributes": {
- "content": "Added post content",
- "created": "2015-03-11T04:31:00.0000000+00:00",
- "title": "Added post"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostLongId_with_client_provided_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostLongId_with_client_provided_id_Response.json
deleted file mode 100644
index dc5ee0f8..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/PostLongId_with_client_provided_id_Response.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-long-ids",
- "id": "205",
- "attributes": {
- "content": "Added post content",
- "created": "2015-03-11T04:31:00.0000000+00:00",
- "title": "Added post"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_client_provided_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_client_provided_id_Response.json
deleted file mode 100644
index a3050aaf..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_client_provided_id_Response.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "205",
- "attributes": {
- "content": "Added post content",
- "created": "2015-03-11T04:31:00.0000000+00:00",
- "title": "Added post"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/205/relationships/author",
- "related": "https://www.example.com/posts/205/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/205/relationships/comments",
- "related": "https://www.example.com/posts/205/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/205/relationships/tags",
- "related": "https://www.example.com/posts/205/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_Response.json
deleted file mode 100644
index 8b7706da..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_Response.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "230",
- "attributes": {
- "content": "The server generated my ID",
- "created": "2015-04-13T12:09:00.0000000+03:00",
- "title": "New post"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/author",
- "related": "https://www.example.com/posts/230/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/comments",
- "related": "https://www.example.com/posts/230/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/tags",
- "related": "https://www.example.com/posts/230/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_and_include_author_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_and_include_author_Response.json
deleted file mode 100644
index f9996946..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/CreatingResources/Responses/Post_with_empty_id_and_include_author_Response.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "230",
- "attributes": {
- "content": "The server generated my ID",
- "created": "2015-04-13T09:09:00.0000000+00:00",
- "title": "New post"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/author",
- "related": "https://www.example.com/posts/230/author"
- },
- "data": {
- "type": "users",
- "id": "401"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/comments",
- "related": "https://www.example.com/posts/230/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/230/relationships/tags",
- "related": "https://www.example.com/posts/230/tags"
- }
- }
- }
- },
- "included": [
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_action_throws_exception.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_action_throws_exception.json
deleted file mode 100644
index b5a6b45a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_action_throws_exception.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "500",
- "title": "Unhandled exception",
- "detail": "An unhandled exception was thrown while processing the request.",
- "meta": {
- "exceptionMessage": "Something bad happened!",
- "stackTrace": "{{STACK_TRACE}}"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_does_not_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_does_not_exist.json
deleted file mode 100644
index 69c2a9c3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Errors/Controller_does_not_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "The resource you requested does not exist."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetAllResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetAllResponse.json
deleted file mode 100644
index 38ba54bc..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetAllResponse.json
+++ /dev/null
@@ -1,120 +0,0 @@
-{
- "data": [
- {
- "type": "posts",
- "id": "201",
- "attributes": {
- "content": "Post 1 content",
- "created": "2015-01-31T14:00:00.0000000+00:00",
- "title": "Post 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/author",
- "related": "https://www.example.com/posts/201/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/comments",
- "related": "https://www.example.com/posts/201/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/tags",
- "related": "https://www.example.com/posts/201/tags"
- }
- }
- }
- },
- {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- },
- {
- "type": "posts",
- "id": "203",
- "attributes": {
- "content": "Post 3 content",
- "created": "2015-02-07T11:11:00.0000000+00:00",
- "title": "Post 3"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/author",
- "related": "https://www.example.com/posts/203/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/comments",
- "related": "https://www.example.com/posts/203/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/tags",
- "related": "https://www.example.com/posts/203/tags"
- }
- }
- }
- },
- {
- "type": "posts",
- "id": "204",
- "attributes": {
- "content": "Post 4 content",
- "created": "2015-02-08T06:59:00.0000000+00:00",
- "title": "Post 4"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/author",
- "related": "https://www.example.com/posts/204/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/comments",
- "related": "https://www.example.com/posts/204/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/tags",
- "related": "https://www.example.com/posts/204/tags"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetByIdResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetByIdResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetByIdResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetWithFilterResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetWithFilterResponse.json
deleted file mode 100644
index 7a337c39..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/GetWithFilterResponse.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "data": [
- {
- "type": "posts",
- "id": "204",
- "attributes": {
- "content": "Post 4 content",
- "created": "2015-02-08T06:59:00.0000000+00:00",
- "title": "Post 4"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/author",
- "related": "https://www.example.com/posts/204/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/comments",
- "related": "https://www.example.com/posts/204/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/tags",
- "related": "https://www.example.com/posts/204/tags"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_dasherized_resource.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_dasherized_resource.json
deleted file mode 100644
index 23c46576..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_dasherized_resource.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "data": [
- {
- "type": "user-groups",
- "id": "501",
- "attributes": {
- "name": "Admin users"
- },
- "relationships": {
- "users": {
- "links": {
- "self": "https://www.example.com/user-groups/501/relationships/users",
- "related": "https://www.example.com/user-groups/501/users"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_included_to_one_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_included_to_one_response.json
deleted file mode 100644
index 98fcd282..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_included_to_one_response.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "201",
- "attributes": {
- "content": "Post 1 content",
- "created": "2015-01-31T14:00:00.0000000+00:00",
- "title": "Post 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/author",
- "related": "https://www.example.com/posts/201/author"
- },
- "data": {
- "type": "users",
- "id": "401"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/comments",
- "related": "https://www.example.com/posts/201/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/tags",
- "related": "https://www.example.com/posts/201/tags"
- }
- }
- }
- },
- "included": [
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_resource_for_relationship_that_doesnt_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_resource_for_relationship_that_doesnt_exist.json
deleted file mode 100644
index 44e502d2..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_resource_for_relationship_that_doesnt_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "No relationship `bananas` exists for the resource type `posts`."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_for_resource_that_doesnt_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_for_resource_that_doesnt_exist.json
deleted file mode 100644
index 3921d080..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_for_resource_that_doesnt_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "No resource of type `posts` exists with id `3000`."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_external_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_external_response.json
deleted file mode 100644
index e8008645..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_external_response.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "data": [
- {
- "type": "posts",
- "id": "201",
- "attributes": {
- "content": "Post 1 content",
- "created": "2015-01-31T14:00:00.0000000+00:00",
- "title": "Post 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/author",
- "related": "https://www.example.com/posts/201/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/comments",
- "related": "https://www.example.com/posts/201/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/tags",
- "related": "https://www.example.com/posts/201/tags"
- },
- "data": [
- {
- "type": "tags",
- "id": "301"
- },
- {
- "type": "tags",
- "id": "302"
- }
- ]
- }
- }
- },
- {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- },
- "data": [
- {
- "type": "tags",
- "id": "302"
- },
- {
- "type": "tags",
- "id": "303"
- }
- ]
- }
- }
- },
- {
- "type": "posts",
- "id": "203",
- "attributes": {
- "content": "Post 3 content",
- "created": "2015-02-07T11:11:00.0000000+00:00",
- "title": "Post 3"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/author",
- "related": "https://www.example.com/posts/203/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/comments",
- "related": "https://www.example.com/posts/203/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/tags",
- "related": "https://www.example.com/posts/203/tags"
- },
- "data": [
- {
- "type": "tags",
- "id": "303"
- }
- ]
- }
- }
- }
- ],
- "included": [
- {
- "type": "tags",
- "id": "301",
- "attributes": {
- "name": "Tag A"
- },
- "relationships": {
- "posts": {
- "links": {
- "self": "https://www.example.com/tags/301/relationships/posts",
- "related": "https://www.example.com/tags/301/posts"
- }
- }
- }
- },
- {
- "type": "tags",
- "id": "302",
- "attributes": {
- "name": "Tag B"
- },
- "relationships": {
- "posts": {
- "links": {
- "self": "https://www.example.com/tags/302/relationships/posts",
- "related": "https://www.example.com/tags/302/posts"
- }
- }
- }
- },
- {
- "type": "tags",
- "id": "303",
- "attributes": {
- "name": "Tag C"
- },
- "relationships": {
- "posts": {
- "links": {
- "self": "https://www.example.com/tags/303/relationships/posts",
- "related": "https://www.example.com/tags/303/posts"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_response.json
deleted file mode 100644
index e1a01091..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_include_response.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "data": [
- {
- "type": "comments",
- "id": "101",
- "attributes": {
- "created": "2015-01-31T14:30:00.0000000+00:00",
- "text": "Comment 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/author",
- "related": "https://www.example.com/comments/101/author"
- },
- "data": {
- "type": "users",
- "id": "403"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/post",
- "related": "https://www.example.com/comments/101/post"
- }
- }
- }
- },
- {
- "type": "comments",
- "id": "102",
- "attributes": {
- "created": "2015-01-31T14:35:00.0000000+00:00",
- "text": "Comment 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/102/relationships/author",
- "related": "https://www.example.com/comments/102/author"
- },
- "data": {
- "type": "users",
- "id": "402"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/102/relationships/post",
- "related": "https://www.example.com/comments/102/post"
- }
- }
- }
- },
- {
- "type": "comments",
- "id": "103",
- "attributes": {
- "created": "2015-01-31T14:41:00.0000000+00:00",
- "text": "Comment 3"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/103/relationships/author",
- "related": "https://www.example.com/comments/103/author"
- },
- "data": {
- "type": "users",
- "id": "403"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/103/relationships/post",
- "related": "https://www.example.com/comments/103/post"
- }
- }
- }
- }
- ],
- "included": [
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_integer_key_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_integer_key_response.json
deleted file mode 100644
index f99bab69..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_integer_key_response.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "data": [
- {
- "type": "children",
- "id": "7501",
- "attributes": {
- "child-description": "Child 2 Description"
- },
- "relationships": {
- "master": {
- "links": {
- "self": "https://www.example.com/children/7501/relationships/master",
- "related": "https://www.example.com/children/7501/master"
- }
- }
- }
- },
- {
- "type": "children",
- "id": "7502",
- "attributes": {
- "child-description": "Child 3 Description"
- },
- "relationships": {
- "master": {
- "links": {
- "self": "https://www.example.com/children/7502/relationships/master",
- "related": "https://www.example.com/children/7502/master"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_response.json
deleted file mode 100644
index 020de840..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_many_response.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "data": [
- {
- "type": "comments",
- "id": "101",
- "attributes": {
- "created": "2015-01-31T14:30:00.0000000+00:00",
- "text": "Comment 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/author",
- "related": "https://www.example.com/comments/101/author"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/post",
- "related": "https://www.example.com/comments/101/post"
- }
- }
- }
- },
- {
- "type": "comments",
- "id": "102",
- "attributes": {
- "created": "2015-01-31T14:35:00.0000000+00:00",
- "text": "Comment 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/102/relationships/author",
- "related": "https://www.example.com/comments/102/author"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/102/relationships/post",
- "related": "https://www.example.com/comments/102/post"
- }
- }
- }
- },
- {
- "type": "comments",
- "id": "103",
- "attributes": {
- "created": "2015-01-31T14:41:00.0000000+00:00",
- "text": "Comment 3"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/103/relationships/author",
- "related": "https://www.example.com/comments/103/author"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/103/relationships/post",
- "related": "https://www.example.com/comments/103/post"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_for_resource_that_doesnt_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_for_resource_that_doesnt_exist.json
deleted file mode 100644
index 3921d080..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_for_resource_that_doesnt_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "No resource of type `posts` exists with id `3000`."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_response.json
deleted file mode 100644
index 504bb96d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_response.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "data": {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_where_it_is_null.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_where_it_is_null.json
deleted file mode 100644
index fd4493f0..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_related_to_one_where_it_is_null.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "data": null
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_resource_by_id_that_doesnt_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_resource_by_id_that_doesnt_exist.json
deleted file mode 100644
index 3921d080..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/FetchingResources/Get_resource_by_id_that_doesnt_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "No resource of type `posts` exists with id `3000`."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Heterogeneous/Responses/GetSearchResultsResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Heterogeneous/Responses/GetSearchResultsResponse.json
deleted file mode 100644
index 5d153ee6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Heterogeneous/Responses/GetSearchResultsResponse.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "data": [
- {
- "type": "posts",
- "id": "201",
- "attributes": {
- "content": "Post 1 content",
- "created": "2015-01-31T14:00:00.0000000+00:00",
- "title": "Post 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/author",
- "related": "https://www.example.com/posts/201/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/comments",
- "related": "https://www.example.com/posts/201/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/201/relationships/tags",
- "related": "https://www.example.com/posts/201/tags"
- }
- }
- }
- },
- {
- "type": "comments",
- "id": "101",
- "attributes": {
- "created": "2015-01-31T14:30:00.0000000+00:00",
- "text": "Comment 1"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/author",
- "related": "https://www.example.com/comments/101/author"
- }
- },
- "post": {
- "links": {
- "self": "https://www.example.com/comments/101/relationships/post",
- "related": "https://www.example.com/comments/101/post"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_all.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_all.json
deleted file mode 100644
index 07c6389e..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_all.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "data": [
- {
- "type": "starships",
- "id": "NCC-1701",
- "attributes": {
- "name": "USS Enterprise",
- "starship-class": "Constitution"
- },
- "relationships": {
- "officers": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701/relationships/officers",
- "related": "https://www.example.com/starships/NCC-1701/officers"
- }
- },
- "ship-counselor": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701/relationships/ship-counselor",
- "related": "https://www.example.com/starships/NCC-1701/ship-counselor"
- }
- }
- }
- },
- {
- "type": "starships",
- "id": "NCC-1701-D",
- "attributes": {
- "name": "USS Enterprise",
- "starship-class": "Galaxy"
- },
- "relationships": {
- "officers": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701-D/relationships/officers",
- "related": "https://www.example.com/starships/NCC-1701-D/officers"
- }
- },
- "ship-counselor": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701-D/relationships/ship-counselor",
- "related": "https://www.example.com/starships/NCC-1701-D/ship-counselor"
- }
- }
- }
- },
- {
- "type": "starships",
- "id": "NCC-74656",
- "attributes": {
- "name": "USS Voyager",
- "starship-class": "Intrepid"
- },
- "relationships": {
- "officers": {
- "links": {
- "self": "https://www.example.com/starships/NCC-74656/relationships/officers",
- "related": "https://www.example.com/starships/NCC-74656/officers"
- }
- },
- "ship-counselor": {
- "links": {
- "self": "https://www.example.com/starships/NCC-74656/relationships/ship-counselor",
- "related": "https://www.example.com/starships/NCC-74656/ship-counselor"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_by_id.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_by_id.json
deleted file mode 100644
index d891b913..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_by_id.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "data": {
- "type": "starships",
- "id": "NCC-1701",
- "attributes": {
- "name": "USS Enterprise",
- "starship-class": "Constitution"
- },
- "relationships": {
- "officers": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701/relationships/officers",
- "related": "https://www.example.com/starships/NCC-1701/officers"
- }
- },
- "ship-counselor": {
- "links": {
- "self": "https://www.example.com/starships/NCC-1701/relationships/ship-counselor",
- "related": "https://www.example.com/starships/NCC-1701/ship-counselor"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_many_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_many_response.json
deleted file mode 100644
index c1221a27..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_many_response.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "data": [
- {
- "type": "starship-officers",
- "id": "NCC-1701-D_12010",
- "attributes": {
- "name": "Jean-Luc Picard",
- "position": "Commanding Officer",
- "rank": "Captain"
- },
- "relationships": {
- "current-ship": {
- "links": {
- "self": "https://www.example.com/starship-officers/NCC-1701-D_12010/relationships/current-ship",
- "related": "https://www.example.com/starship-officers/NCC-1701-D_12010/current-ship"
- }
- }
- }
- },
- {
- "type": "starship-officers",
- "id": "NCC-1701-D_12011",
- "attributes": {
- "name": "William T. Riker",
- "position": "First Officer",
- "rank": "Commander"
- },
- "relationships": {
- "current-ship": {
- "links": {
- "self": "https://www.example.com/starship-officers/NCC-1701-D_12011/relationships/current-ship",
- "related": "https://www.example.com/starship-officers/NCC-1701-D_12011/current-ship"
- }
- }
- }
- },
- {
- "type": "starship-officers",
- "id": "NCC-1701-D_12012",
- "attributes": {
- "name": "Data",
- "position": "Second Officer",
- "rank": "Lt. Commander"
- },
- "relationships": {
- "current-ship": {
- "links": {
- "self": "https://www.example.com/starship-officers/NCC-1701-D_12012/relationships/current-ship",
- "related": "https://www.example.com/starship-officers/NCC-1701-D_12012/current-ship"
- }
- }
- }
- },
- {
- "type": "starship-officers",
- "id": "NCC-1701-D_12013",
- "attributes": {
- "name": "Deanna Troi",
- "position": "Ship's Counselor",
- "rank": "Lt. Commander"
- },
- "relationships": {
- "current-ship": {
- "links": {
- "self": "https://www.example.com/starship-officers/NCC-1701-D_12013/relationships/current-ship",
- "related": "https://www.example.com/starship-officers/NCC-1701-D_12013/current-ship"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_one_response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_one_response.json
deleted file mode 100644
index f311d73c..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_related_to_one_response.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "data": {
- "type": "starship-officers",
- "id": "NCC-1701-D_12013",
- "attributes": {
- "name": "Deanna Troi",
- "position": "Ship's Counselor",
- "rank": "Lt. Commander"
- },
- "relationships": {
- "current-ship": {
- "links": {
- "self": "https://www.example.com/starship-officers/NCC-1701-D_12013/relationships/current-ship",
- "related": "https://www.example.com/starship-officers/NCC-1701-D_12013/current-ship"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_resource_by_id_that_doesnt_exist.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_resource_by_id_that_doesnt_exist.json
deleted file mode 100644
index 57931946..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Mapped/Responses/Get_resource_by_id_that_doesnt_exist.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "404",
- "title": "Resource not found",
- "detail": "No record exists with type `starships` and ID `NCC-asdf`."
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetAllResponsePaged-2-2.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetAllResponsePaged-2-2.json
deleted file mode 100644
index 7bf2f5ba..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetAllResponsePaged-2-2.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "meta": {
- "total-pages": 2,
- "total-count": 4
- },
- "data": [
- {
- "type": "posts",
- "id": "203",
- "attributes": {
- "content": "Post 3 content",
- "created": "2015-02-07T11:11:00.0000000+00:00",
- "title": "Post 3"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/author",
- "related": "https://www.example.com/posts/203/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/comments",
- "related": "https://www.example.com/posts/203/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/203/relationships/tags",
- "related": "https://www.example.com/posts/203/tags"
- }
- }
- }
- },
- {
- "type": "posts",
- "id": "204",
- "attributes": {
- "content": "Post 4 content",
- "created": "2015-02-08T06:59:00.0000000+00:00",
- "title": "Post 4"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/author",
- "related": "https://www.example.com/posts/204/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/comments",
- "related": "https://www.example.com/posts/204/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/204/relationships/tags",
- "related": "https://www.example.com/posts/204/tags"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted-desc.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted-desc.json
deleted file mode 100644
index b65cea48..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted-desc.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "meta": {
- "total-pages": 2,
- "total-count": 3
- },
- "data": [
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted.json
deleted file mode 100644
index ee562655..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-1-2-sorted.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "meta": {
- "total-pages": 2,
- "total-count": 3
- },
- "data": [
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-2-1.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-2-1.json
deleted file mode 100644
index 16e92908..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Pagination/GetFilterPaged-2-1.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "meta": {
- "total-pages": 3,
- "total-count": 3
- },
- "data": [
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedAscendingResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedAscendingResponse.json
deleted file mode 100644
index 9355b97e..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedAscendingResponse.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "data": [
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "405",
- "attributes": {
- "first-name": "Michelle",
- "last-name": "Johnson"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/comments",
- "related": "https://www.example.com/users/405/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/posts",
- "related": "https://www.example.com/users/405/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/user-groups",
- "related": "https://www.example.com/users/405/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "408",
- "attributes": {
- "first-name": "Pat",
- "last-name": "Morgan"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/comments",
- "related": "https://www.example.com/users/408/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/posts",
- "related": "https://www.example.com/users/408/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/user-groups",
- "related": "https://www.example.com/users/408/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "404",
- "attributes": {
- "first-name": "Richard",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/comments",
- "related": "https://www.example.com/users/404/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/posts",
- "related": "https://www.example.com/users/404/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/user-groups",
- "related": "https://www.example.com/users/404/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "407",
- "attributes": {
- "first-name": "Thomas",
- "last-name": "Potter"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/comments",
- "related": "https://www.example.com/users/407/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/posts",
- "related": "https://www.example.com/users/407/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/user-groups",
- "related": "https://www.example.com/users/407/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMixedDirectionResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMixedDirectionResponse.json
deleted file mode 100644
index 34d2cff4..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMixedDirectionResponse.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "data": [
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "405",
- "attributes": {
- "first-name": "Michelle",
- "last-name": "Johnson"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/comments",
- "related": "https://www.example.com/users/405/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/posts",
- "related": "https://www.example.com/users/405/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/user-groups",
- "related": "https://www.example.com/users/405/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "408",
- "attributes": {
- "first-name": "Pat",
- "last-name": "Morgan"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/comments",
- "related": "https://www.example.com/users/408/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/posts",
- "related": "https://www.example.com/users/408/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/user-groups",
- "related": "https://www.example.com/users/408/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "407",
- "attributes": {
- "first-name": "Thomas",
- "last-name": "Potter"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/comments",
- "related": "https://www.example.com/users/407/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/posts",
- "related": "https://www.example.com/users/407/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/user-groups",
- "related": "https://www.example.com/users/407/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "404",
- "attributes": {
- "first-name": "Richard",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/comments",
- "related": "https://www.example.com/users/404/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/posts",
- "related": "https://www.example.com/users/404/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/user-groups",
- "related": "https://www.example.com/users/404/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleAscendingResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleAscendingResponse.json
deleted file mode 100644
index bb1e4fbe..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleAscendingResponse.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "data": [
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "405",
- "attributes": {
- "first-name": "Michelle",
- "last-name": "Johnson"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/comments",
- "related": "https://www.example.com/users/405/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/posts",
- "related": "https://www.example.com/users/405/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/user-groups",
- "related": "https://www.example.com/users/405/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "408",
- "attributes": {
- "first-name": "Pat",
- "last-name": "Morgan"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/comments",
- "related": "https://www.example.com/users/408/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/posts",
- "related": "https://www.example.com/users/408/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/user-groups",
- "related": "https://www.example.com/users/408/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "407",
- "attributes": {
- "first-name": "Thomas",
- "last-name": "Potter"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/comments",
- "related": "https://www.example.com/users/407/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/posts",
- "related": "https://www.example.com/users/407/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/user-groups",
- "related": "https://www.example.com/users/407/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "404",
- "attributes": {
- "first-name": "Richard",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/comments",
- "related": "https://www.example.com/users/404/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/posts",
- "related": "https://www.example.com/users/404/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/user-groups",
- "related": "https://www.example.com/users/404/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleDescendingResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleDescendingResponse.json
deleted file mode 100644
index c56db237..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByMultipleDescendingResponse.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "data": [
- {
- "type": "users",
- "id": "404",
- "attributes": {
- "first-name": "Richard",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/comments",
- "related": "https://www.example.com/users/404/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/posts",
- "related": "https://www.example.com/users/404/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/user-groups",
- "related": "https://www.example.com/users/404/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "407",
- "attributes": {
- "first-name": "Thomas",
- "last-name": "Potter"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/comments",
- "related": "https://www.example.com/users/407/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/posts",
- "related": "https://www.example.com/users/407/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/user-groups",
- "related": "https://www.example.com/users/407/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "408",
- "attributes": {
- "first-name": "Pat",
- "last-name": "Morgan"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/comments",
- "related": "https://www.example.com/users/408/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/posts",
- "related": "https://www.example.com/users/408/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/user-groups",
- "related": "https://www.example.com/users/408/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "405",
- "attributes": {
- "first-name": "Michelle",
- "last-name": "Johnson"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/comments",
- "related": "https://www.example.com/users/405/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/posts",
- "related": "https://www.example.com/users/405/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/user-groups",
- "related": "https://www.example.com/users/405/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedBySameColumnTwiceResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedBySameColumnTwiceResponse.json
deleted file mode 100644
index a3541ef0..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedBySameColumnTwiceResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Attribute specified more than once",
- "detail": "The attribute \"first-name\" was specified more than once.",
- "source": {
- "parameter": "sort"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByUnknownColumnResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByUnknownColumnResponse.json
deleted file mode 100644
index 5884cc7a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedByUnknownColumnResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Attribute not found",
- "detail": "The attribute \"foobar\" does not exist on type \"users\".",
- "source": {
- "parameter": "sort"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedDescendingResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedDescendingResponse.json
deleted file mode 100644
index aa6cd74b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/Sorting/Responses/GetSortedDescendingResponse.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "data": [
- {
- "type": "users",
- "id": "407",
- "attributes": {
- "first-name": "Thomas",
- "last-name": "Potter"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/comments",
- "related": "https://www.example.com/users/407/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/posts",
- "related": "https://www.example.com/users/407/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/407/relationships/user-groups",
- "related": "https://www.example.com/users/407/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "410",
- "attributes": {
- "first-name": "Sally",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/comments",
- "related": "https://www.example.com/users/410/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/posts",
- "related": "https://www.example.com/users/410/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/410/relationships/user-groups",
- "related": "https://www.example.com/users/410/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "404",
- "attributes": {
- "first-name": "Richard",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/comments",
- "related": "https://www.example.com/users/404/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/posts",
- "related": "https://www.example.com/users/404/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/404/relationships/user-groups",
- "related": "https://www.example.com/users/404/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "408",
- "attributes": {
- "first-name": "Pat",
- "last-name": "Morgan"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/comments",
- "related": "https://www.example.com/users/408/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/posts",
- "related": "https://www.example.com/users/408/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/408/relationships/user-groups",
- "related": "https://www.example.com/users/408/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "405",
- "attributes": {
- "first-name": "Michelle",
- "last-name": "Johnson"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/comments",
- "related": "https://www.example.com/users/405/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/posts",
- "related": "https://www.example.com/users/405/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/405/relationships/user-groups",
- "related": "https://www.example.com/users/405/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "406",
- "attributes": {
- "first-name": "Ed",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/comments",
- "related": "https://www.example.com/users/406/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/posts",
- "related": "https://www.example.com/users/406/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/406/relationships/user-groups",
- "related": "https://www.example.com/users/406/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "403",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Michaels"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/comments",
- "related": "https://www.example.com/users/403/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/posts",
- "related": "https://www.example.com/users/403/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/403/relationships/user-groups",
- "related": "https://www.example.com/users/403/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "409",
- "attributes": {
- "first-name": "Charlie",
- "last-name": "Burns"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/comments",
- "related": "https://www.example.com/users/409/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/posts",
- "related": "https://www.example.com/users/409/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/409/relationships/user-groups",
- "related": "https://www.example.com/users/409/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "402",
- "attributes": {
- "first-name": "Bob",
- "last-name": "Jones"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/comments",
- "related": "https://www.example.com/users/402/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/posts",
- "related": "https://www.example.com/users/402/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/402/relationships/user-groups",
- "related": "https://www.example.com/users/402/user-groups"
- }
- }
- }
- },
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayForToOneLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayForToOneLinkageRequest.json
deleted file mode 100644
index d77552d2..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayForToOneLinkageRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": [ { "type": "users", "id": "403" } ]
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayRelationshipValueRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayRelationshipValueRequest.json
deleted file mode 100644
index 7835ed54..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithArrayRelationshipValueRequest.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": ["301"]
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequest.json
deleted file mode 100644
index 4a0636e6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequest.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "title": "New post title"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestID.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestID.json
deleted file mode 100644
index ac7fbb4b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestID.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data": {
- "type": "post-i-ds",
- "id": "202",
- "attributes": {
- "title": "New post title"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestLongId.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestLongId.json
deleted file mode 100644
index 7358d7a8..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithAttributeUpdateRequestLongId.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data": {
- "type": "post-long-ids",
- "id": "202",
- "attributes": {
- "title": "New post title"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToManyLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToManyLinkageRequest.json
deleted file mode 100644
index 417fe5a3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToManyLinkageRequest.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToOneLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToOneLinkageRequest.json
deleted file mode 100644
index a664a866..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithMissingToOneLinkageRequest.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullForToManyLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullForToManyLinkageRequest.json
deleted file mode 100644
index 58bf45a3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullForToManyLinkageRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": null
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullToOneUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullToOneUpdateRequest.json
deleted file mode 100644
index b73bceeb..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithNullToOneUpdateRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": null
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithObjectForToManyLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithObjectForToManyLinkageRequest.json
deleted file mode 100644
index b1e90ab0..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithObjectForToManyLinkageRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": { "type": "tags", "id": "301" }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToManyLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToManyLinkageRequest.json
deleted file mode 100644
index 7aa288c5..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToManyLinkageRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": "301"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToOneLinkageRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToOneLinkageRequest.json
deleted file mode 100644
index 919ab261..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringForToOneLinkageRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": "403"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringRelationshipValueRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringRelationshipValueRequest.json
deleted file mode 100644
index 5886abfe..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithStringRelationshipValueRequest.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": "301"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyEmptyLinkageUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyEmptyLinkageUpdateRequest.json
deleted file mode 100644
index 19eb21a7..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyEmptyLinkageUpdateRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": []
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyHomogeneousDataUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyHomogeneousDataUpdateRequest.json
deleted file mode 100644
index a3adc581..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyHomogeneousDataUpdateRequest.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": [
- {
- "id": "301",
- "type": "tags"
- },
- {
- "id": "303",
- "type": "tags"
- }
- ]
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingIdRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingIdRequest.json
deleted file mode 100644
index 5d36b4cb..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingIdRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": [ { "type": "tags" } ]
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingTypeRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingTypeRequest.json
deleted file mode 100644
index 6b4c11ae..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyLinkageObjectMissingTypeRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": [ { "id": "301" } ]
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyUpdateRequest.json
deleted file mode 100644
index db0ef77d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToManyUpdateRequest.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "tags": {
- "data": [
- { "type": "tags", "id": "301" }
- ]
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingIdRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingIdRequest.json
deleted file mode 100644
index ebdfb7d6..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingIdRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": { "type": "users" }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingTypeRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingTypeRequest.json
deleted file mode 100644
index 0ef65f96..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneLinkageObjectMissingTypeRequest.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": { "id": "403" }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneUpdateRequest.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneUpdateRequest.json
deleted file mode 100644
index 296c122a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/PatchWithToOneUpdateRequest.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "relationships": {
- "author": {
- "data": {
- "type": "users",
- "id": "403"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_attribute_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_attribute_Request.json
deleted file mode 100644
index 3394d6df..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_attribute_Request.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "title": "New post title",
- "some-fake-attribute": 99
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_relationship_Request.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_relationship_Request.json
deleted file mode 100644
index 1b4d99fb..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Requests/Patch_with_unknown_relationship_Request.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "title": "New post title"
- },
- "relationships": {
- "some-fake-relationship": {
- "data": { "type": "author", "id": "45000" }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayForToOneLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayForToOneLinkageResponse.json
deleted file mode 100644
index d7a626e3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayForToOneLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid linkage for to-one relationship",
- "detail": "Expected an object or null for to-one linkage",
- "source": {
- "pointer": "/data/relationships/author/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayRelationshipValueResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayRelationshipValueResponse.json
deleted file mode 100644
index 56a27ad3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithArrayRelationshipValueResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid relationship object",
- "detail": "Expected an object, but found StartArray",
- "source": {
- "pointer": "/data/relationships/tags"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponse.json
deleted file mode 100644
index aba0d13d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseID.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseID.json
deleted file mode 100644
index b0448cb5..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseID.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-i-ds",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseLongId.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseLongId.json
deleted file mode 100644
index fea5fa0a..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateResponseLongId.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "data": {
- "type": "post-long-ids",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateWithIncludeResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateWithIncludeResponse.json
deleted file mode 100644
index 6bff40d9..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithAttributeUpdateWithIncludeResponse.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- },
- "data": {
- "type": "users",
- "id": "401"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- },
- "included": [
- {
- "type": "users",
- "id": "401",
- "attributes": {
- "first-name": "Alice",
- "last-name": "Smith"
- },
- "relationships": {
- "comments": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/comments",
- "related": "https://www.example.com/users/401/comments"
- }
- },
- "posts": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/posts",
- "related": "https://www.example.com/users/401/posts"
- }
- },
- "user-groups": {
- "links": {
- "self": "https://www.example.com/users/401/relationships/user-groups",
- "related": "https://www.example.com/users/401/user-groups"
- }
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToManyLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToManyLinkageResponse.json
deleted file mode 100644
index 09cdf2e3..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToManyLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Missing linkage for to-many relationship",
- "detail": "Expected an array for to-many linkage, but no linkage was specified.",
- "source": {
- "pointer": "/data/relationships/tags"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToOneLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToOneLinkageResponse.json
deleted file mode 100644
index f279160e..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithMissingToOneLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Missing linkage for to-one relationship",
- "detail": "Expected an object for to-one linkage, but no linkage was specified.",
- "source": {
- "pointer": "/data/relationships/author"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullForToManyLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullForToManyLinkageResponse.json
deleted file mode 100644
index fc7f2409..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullForToManyLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid linkage for to-many relationship",
- "detail": "Expected an array for to-many linkage.",
- "source": {
- "pointer": "/data/relationships/tags/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullToOneUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullToOneUpdateResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithNullToOneUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithObjectForToManyLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithObjectForToManyLinkageResponse.json
deleted file mode 100644
index fc7f2409..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithObjectForToManyLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid linkage for to-many relationship",
- "detail": "Expected an array for to-many linkage.",
- "source": {
- "pointer": "/data/relationships/tags/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToManyLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToManyLinkageResponse.json
deleted file mode 100644
index 3326563d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToManyLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid linkage for relationship",
- "detail": "Expected an array, object, or null for linkage, but got String",
- "source": {
- "pointer": "/data/relationships/tags/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToOneLinkageResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToOneLinkageResponse.json
deleted file mode 100644
index cfe637ad..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringForToOneLinkageResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid linkage for relationship",
- "detail": "Expected an array, object, or null for linkage, but got String",
- "source": {
- "pointer": "/data/relationships/author/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringRelationshipValueResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringRelationshipValueResponse.json
deleted file mode 100644
index 0a717105..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithStringRelationshipValueResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Invalid relationship object",
- "detail": "Expected an object, but found String",
- "source": {
- "pointer": "/data/relationships/author"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyEmptyLinkageUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyEmptyLinkageUpdateResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyEmptyLinkageUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyHomogeneousDataUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyHomogeneousDataUpdateResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyHomogeneousDataUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingIdResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingIdResponse.json
deleted file mode 100644
index 8b28cb3f..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingIdResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Resource identifier missing id",
- "detail": "The `id` key is missing.",
- "source": {
- "pointer": "/data/relationships/tags/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingTypeResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingTypeResponse.json
deleted file mode 100644
index 125ef5db..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyLinkageObjectMissingTypeResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Resource identifier missing type",
- "detail": "The `type` key is missing.",
- "source": {
- "pointer": "/data/relationships/tags/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyUpdateResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToManyUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingIdResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingIdResponse.json
deleted file mode 100644
index 2beea4ec..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingIdResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Resource identifier missing id",
- "detail": "The `id` key is missing.",
- "source": {
- "pointer": "/data/relationships/author/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingTypeResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingTypeResponse.json
deleted file mode 100644
index fb14417c..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneLinkageObjectMissingTypeResponse.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "errors": [
- {
- "id": "{{SOME_GUID}}",
- "status": "400",
- "title": "Resource identifier missing type",
- "detail": "The `type` key is missing.",
- "source": {
- "pointer": "/data/relationships/author/data"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneUpdateResponse.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneUpdateResponse.json
deleted file mode 100644
index f9067b51..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/PatchWithToOneUpdateResponse.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "Post 2"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_attribute_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_attribute_Response.json
deleted file mode 100644
index aba0d13d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_attribute_Response.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_relationship_Response.json b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_relationship_Response.json
deleted file mode 100644
index aba0d13d..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Fixtures/UpdatingResources/Responses/Patch_with_unknown_relationship_Response.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "data": {
- "type": "posts",
- "id": "202",
- "attributes": {
- "content": "Post 2 content",
- "created": "2015-02-05T08:10:00.0000000+00:00",
- "title": "New post title"
- },
- "relationships": {
- "author": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/author",
- "related": "https://www.example.com/posts/202/author"
- }
- },
- "comments": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/comments",
- "related": "https://www.example.com/posts/202/comments"
- }
- },
- "tags": {
- "links": {
- "self": "https://www.example.com/posts/202/relationships/tags",
- "related": "https://www.example.com/posts/202/tags"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/HeterogeneousTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/HeterogeneousTests.cs
deleted file mode 100644
index 013baa6b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/HeterogeneousTests.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class HeterogeneousTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Get()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "search?s=1");
-
- await AssertResponseContent(response, @"Fixtures\Heterogeneous\Responses\GetSearchResultsResponse.json", HttpStatusCode.OK);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests.csproj b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests.csproj
deleted file mode 100644
index 35d82430..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests.csproj
+++ /dev/null
@@ -1,321 +0,0 @@
-
-
-
- Debug
- AnyCPU
- {58AEF8B8-8D51-4175-AC96-BC622703E8BB}
- Library
- Properties
- JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
- JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
- v4.5
- 512
- {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 10.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
- $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages
- False
- UnitTest
- ..\
- true
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- ..\packages\Effort.EF6.1.1.4\lib\net45\Effort.dll
-
-
- ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll
-
-
- ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll
-
-
- ..\packages\FluentAssertions.3.2.2\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.3.2.2\lib\net45\FluentAssertions.Core.dll
-
-
- ..\packages\Microsoft.Owin.3.0.0\lib\net45\Microsoft.Owin.dll
-
-
- ..\packages\Microsoft.Owin.Hosting.3.0.0\lib\net45\Microsoft.Owin.Hosting.dll
-
-
- ..\packages\Microsoft.Owin.Testing.3.0.0\lib\net45\Microsoft.Owin.Testing.dll
-
-
- ..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll
- True
-
-
- ..\packages\NMemory.1.0.1\lib\net45\NMemory.dll
-
-
- ..\packages\Owin.1.0\lib\net40\Owin.dll
-
-
-
-
-
-
- ..\packages\Microsoft.AspNet.WebApi.Client.5.2.2\lib\net45\System.Net.Http.Formatting.dll
- True
-
-
-
- ..\packages\Microsoft.AspNet.WebApi.Core.5.2.2\lib\net45\System.Web.Http.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {76dee472-723b-4be6-8b97-428ac326e30f}
- JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp
-
-
- {AF7861F3-550B-4F70-A33E-1E5F48D39333}
- JSONAPI.Autofac
-
-
- {52b19fd6-efaa-45b5-9c3e-a652e27608d1}
- JSONAPI
-
-
-
-
- Always
-
-
-
-
-
-
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
-
-
- False
-
-
- False
-
-
- False
-
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
-
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/MappedTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/MappedTests.cs
deleted file mode 100644
index 9ecf7f77..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/MappedTests.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class MappedTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Starship.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipClass.csv", @"Data")]
- public async Task Get_all()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "starships");
-
- await AssertResponseContent(response, @"Fixtures\Mapped\Responses\Get_all.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Starship.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipClass.csv", @"Data")]
- public async Task Get_by_id()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "starships/NCC-1701");
-
- await AssertResponseContent(response, @"Fixtures\Mapped\Responses\Get_by_id.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Starship.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipClass.csv", @"Data")]
- public async Task Get_resource_by_id_that_doesnt_exist()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "starships/NCC-asdf");
-
- await AssertResponseContent(response, @"Fixtures\Mapped\Responses\Get_resource_by_id_that_doesnt_exist.json", HttpStatusCode.NotFound, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Starship.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipClass.csv", @"Data")]
- [DeploymentItem(@"Data\Officer.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipOfficerLink.csv", @"Data")]
- public async Task Get_related_to_many()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "starships/NCC-1701-D/officers");
-
- await AssertResponseContent(response, @"Fixtures\Mapped\Responses\Get_related_to_many_response.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Starship.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipClass.csv", @"Data")]
- [DeploymentItem(@"Data\Officer.csv", @"Data")]
- [DeploymentItem(@"Data\StarshipOfficerLink.csv", @"Data")]
- public async Task Get_related_to_one()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "starships/NCC-1701-D/ship-counselor");
-
- await AssertResponseContent(response, @"Fixtures\Mapped\Responses\Get_related_to_one_response.json", HttpStatusCode.OK);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/PaginationTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/PaginationTests.cs
deleted file mode 100644
index 0db20f57..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/PaginationTests.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class PaginationTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetPage2Post2()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "posts?page[number]=1&page[size]=2");
-
- await AssertResponseContent(response, @"Fixtures\Pagination\GetAllResponsePaged-2-2.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetWithFilter()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?filter[last-name]=Burns&page[number]=1&page[size]=1");
-
- await AssertResponseContent(response, @"Fixtures\Pagination\GetFilterPaged-2-1.json", HttpStatusCode.OK);
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetWithFilterSortedAscTest()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?filter[last-name]=Burns&page[number]=0&page[size]=2&sort=first-name");
-
- await AssertResponseContent(response, @"Fixtures\Pagination\GetFilterPaged-1-2-sorted.json", HttpStatusCode.OK);
- }
- }
-
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetWithFilterSortedDescTest()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?filter[last-name]=Burns&page[number]=0&page[size]=2&sort=-first-name");
-
- await AssertResponseContent(response, @"Fixtures\Pagination\GetFilterPaged-1-2-sorted-desc.json", HttpStatusCode.OK);
- }
- }
-
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Properties/AssemblyInfo.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Properties/AssemblyInfo.cs
deleted file mode 100644
index af90b244..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests")]
-[assembly: AssemblyCopyright("Copyright © 2015")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("3d646890-c7b9-4a90-9706-eb8378591814")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/SortingTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/SortingTests.cs
deleted file mode 100644
index 7e11a58e..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/SortingTests.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-using System.Net;
-using System.Threading.Tasks;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class SortingTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedAscending()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedAscendingResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedDesending()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=-first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedDescendingResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedByMultipleAscending()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=last-name,first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedByMultipleAscendingResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedByMultipleDescending()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=-last-name,-first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedByMultipleDescendingResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedByMixedDirection()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=last-name,-first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedByMixedDirectionResponse.json", HttpStatusCode.OK);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedByUnknownColumn()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=foobar");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedByUnknownColumnResponse.json", HttpStatusCode.BadRequest, true);
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task GetSortedBySameColumnTwice()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitGet(effortConnection, "users?sort=first-name,first-name");
-
- await AssertResponseContent(response, @"Fixtures\Sorting\Responses\GetSortedBySameColumnTwiceResponse.json", HttpStatusCode.BadRequest, true);
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/TestHelpers.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/TestHelpers.cs
deleted file mode 100644
index dbafdaee..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/TestHelpers.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Data.Common;
-using System.IO;
-using System.Reflection;
-using Effort;
-using Effort.DataLoaders;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- internal static class TestHelpers
- {
- // http://stackoverflow.com/questions/21175713/no-entity-framework-provider-found-for-the-ado-net-provider-with-invariant-name
- // ReSharper disable once NotAccessedField.Local
- private static volatile Type _dependency;
- static TestHelpers()
- {
- _dependency = typeof(System.Data.Entity.SqlServer.SqlProviderServices);
- }
-
- public static string ReadEmbeddedFile(string path)
- {
- var resourcePath = "JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests." + path.Replace("\\", ".").Replace("/", ".");
- using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourcePath))
- {
- if (stream == null) throw new Exception("Could not find a file at the path: " + path);
- return new StreamReader(stream).ReadToEnd();
- }
- }
-
- public static DbConnection GetEffortConnection(string relativeDataPath)
- {
- var dataPath = Path.GetFullPath(relativeDataPath);
- var dataLoader = new CsvDataLoader(dataPath);
- return DbConnectionFactory.CreateTransient(dataLoader);
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/UpdatingResourcesTests.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/UpdatingResourcesTests.cs
deleted file mode 100644
index e24ae49b..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/UpdatingResourcesTests.cs
+++ /dev/null
@@ -1,700 +0,0 @@
-using System;
-using System.Data.Entity;
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
-using FluentAssertions;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests
-{
- [TestClass]
- public class UpdatingResourcesTests : AcceptanceTestsBase
- {
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithAttributeUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithAttributeUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithAttributeUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithAttributeUpdateAndInclude()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202?include=author", @"Fixtures\UpdatingResources\Requests\PatchWithAttributeUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithAttributeUpdateWithIncludeResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostID.csv", @"Data")]
- public async Task PatchWithAttributeUpdateID()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "post-i-ds/202", @"Fixtures\UpdatingResources\Requests\PatchWithAttributeUpdateRequestID.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithAttributeUpdateResponseID.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsID;
- allPosts.Count().Should().Be(4);
- var actualPost = allPosts.First(t => t.ID == "202");
- actualPost.ID.Should().Be("202");
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\PostLongId.csv", @"Data")]
- public async Task PatchWithAttributeUpdateLongId()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "post-long-ids/202", @"Fixtures\UpdatingResources\Requests\PatchWithAttributeUpdateRequestLongId.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithAttributeUpdateResponseLongId.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.PostsLongId;
- allPosts.Count().Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == 202);
- actualPost.Id.Should().Be(202);
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Patch_with_unknown_attribute()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\Patch_with_unknown_attribute_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\Patch_with_unknown_attribute_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task Patch_with_unknown_relationship()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\Patch_with_unknown_relationship_Request.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\Patch_with_unknown_relationship_Response.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("New post title");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToManyUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToManyUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToManyUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("301");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToManyHomogeneousDataUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToManyHomogeneousDataUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToManyHomogeneousDataUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("301", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToManyEmptyLinkageUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToManyEmptyLinkageUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToManyEmptyLinkageUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Tags).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Should().BeEmpty();
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToOneUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToOneUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToOneUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("403");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithNullToOneUpdate()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithNullToOneUpdateRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithNullToOneUpdateResponse.json", HttpStatusCode.OK);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.Include(p => p.Author).ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.Author.Should().BeNull();
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithMissingToOneLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithMissingToOneLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithMissingToOneLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToOneLinkageObjectMissingId()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToOneLinkageObjectMissingIdRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToOneLinkageObjectMissingIdResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToOneLinkageObjectMissingType()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToOneLinkageObjectMissingTypeRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToOneLinkageObjectMissingTypeResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithArrayForToOneLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithArrayForToOneLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithArrayForToOneLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithStringForToOneLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithStringForToOneLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithStringForToOneLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithMissingToManyLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithMissingToManyLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithMissingToManyLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToManyLinkageObjectMissingId()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToManyLinkageObjectMissingIdRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToManyLinkageObjectMissingIdResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithToManyLinkageObjectMissingType()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithToManyLinkageObjectMissingTypeRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithToManyLinkageObjectMissingTypeResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithObjectForToManyLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithObjectForToManyLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithObjectForToManyLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithStringForToManyLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithStringForToManyLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithStringForToManyLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
-
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithNullForToManyLinkage()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithNullForToManyLinkageRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithNullForToManyLinkageResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithArrayRelationshipValue()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithArrayRelationshipValueRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithArrayRelationshipValueResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
-
- [TestMethod]
- [DeploymentItem(@"Data\Comment.csv", @"Data")]
- [DeploymentItem(@"Data\Post.csv", @"Data")]
- [DeploymentItem(@"Data\PostTagLink.csv", @"Data")]
- [DeploymentItem(@"Data\Tag.csv", @"Data")]
- [DeploymentItem(@"Data\User.csv", @"Data")]
- public async Task PatchWithStringRelationshipValue()
- {
- using (var effortConnection = GetEffortConnection())
- {
- var response = await SubmitPatch(effortConnection, "posts/202", @"Fixtures\UpdatingResources\Requests\PatchWithStringRelationshipValueRequest.json");
-
- await AssertResponseContent(response, @"Fixtures\UpdatingResources\Responses\PatchWithStringRelationshipValueResponse.json", HttpStatusCode.BadRequest, true);
-
- using (var dbContext = new TestDbContext(effortConnection, false))
- {
- var allPosts = dbContext.Posts.ToArray();
- allPosts.Length.Should().Be(4);
- var actualPost = allPosts.First(t => t.Id == "202");
- actualPost.Id.Should().Be("202");
- actualPost.Title.Should().Be("Post 2");
- actualPost.Content.Should().Be("Post 2 content");
- actualPost.Created.Should().Be(new DateTimeOffset(2015, 02, 05, 08, 10, 0, new TimeSpan(0)));
- actualPost.AuthorId.Should().Be("401");
- actualPost.Tags.Select(t => t.Id).Should().BeEquivalentTo("302", "303");
- }
- }
- }
- }
-}
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/packages.config b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/packages.config
deleted file mode 100644
index 0243217e..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Tests/packages.config
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/MainController.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/MainController.cs
deleted file mode 100644
index 6c786a1c..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/MainController.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using JSONAPI.Http;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Controllers
-{
- public class MainController : JsonApiController
- {
- public MainController(IDocumentMaterializerLocator documentMaterializerLocator)
- : base(documentMaterializerLocator)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SamplesController.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SamplesController.cs
deleted file mode 100644
index 4d6d7546..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SamplesController.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-using System;
-using System.Web.Http;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Controllers
-{
- public class SamplesController : ApiController
- {
- public IHttpActionResult GetSamples()
- {
- var s1 = new Sample
- {
- Id = "1",
- BooleanField = false,
- NullableBooleanField = false,
- SbyteField = default(SByte),
- NullableSbyteField = null,
- ByteField = default(Byte),
- NullableByteField = null,
- Int16Field = default(Int16),
- NullableInt16Field = null,
- Uint16Field = default(UInt16),
- NullableUint16Field = null,
- Int32Field = default(Int32),
- NullableInt32Field = null,
- Uint32Field = default(Int32),
- NullableUint32Field = null,
- Int64Field = default(Int64),
- NullableInt64Field = null,
- Uint64Field = default(UInt64),
- NullableUint64Field = null,
- DoubleField = default(Double),
- NullableDoubleField = null,
- SingleField = default(Single),
- NullableSingleField = null,
- DecimalField = default(Decimal),
- NullableDecimalField = null,
- DateTimeField = default(DateTime),
- NullableDateTimeField = null,
- DateTimeOffsetField = default(DateTimeOffset),
- NullableDateTimeOffsetField = null,
- GuidField = default(Guid),
- NullableGuidField = null,
- StringField = null,
- EnumField = default(SampleEnum),
- NullableEnumField = null,
- ComplexAttributeField = null,
- JTokenStringField = null,
- JTokenObjectField = null,
- JTokenArrayField = null
- };
- var s2 = new Sample
- {
- Id = "2",
- BooleanField = true,
- NullableBooleanField = true,
- SbyteField = 123,
- NullableSbyteField = 123,
- ByteField = 253,
- NullableByteField = 253,
- Int16Field = 32000,
- NullableInt16Field = 32000,
- Uint16Field = 64000,
- NullableUint16Field = 64000,
- Int32Field = 2000000000,
- NullableInt32Field = 2000000000,
- Uint32Field = 3000000000,
- NullableUint32Field = 3000000000,
- Int64Field = 9223372036854775807,
- NullableInt64Field = 9223372036854775807,
- Uint64Field = 9223372036854775808,
- NullableUint64Field = 9223372036854775808,
- DoubleField = 1056789.123,
- NullableDoubleField = 1056789.123,
- SingleField = 1056789.123f,
- NullableSingleField = 1056789.123f,
- DecimalField = 1056789.123m,
- NullableDecimalField = 1056789.123m,
- DateTimeField = new DateTime(1776, 07, 04),
- NullableDateTimeField = new DateTime(1776, 07, 04),
- DateTimeOffsetField = new DateTimeOffset(new DateTime(1776, 07, 04), new TimeSpan(-5, 0, 0)),
- NullableDateTimeOffsetField = new DateTimeOffset(new DateTime(1776, 07, 04), new TimeSpan(-5, 0, 0)),
- GuidField = new Guid("6566F9B4-5245-40DE-890D-98B40A4AD656"),
- NullableGuidField = new Guid("3D1FB81E-43EE-4D04-AF91-C8A326341293"),
- StringField = "Some string 156",
- EnumField = SampleEnum.Value1,
- NullableEnumField = SampleEnum.Value2,
- ComplexAttributeField = "{\"foo\": { \"baz\": [11] }, \"bar\": 5}",
- JTokenStringField = "Andrew Jackson",
- JTokenObjectField = JToken.FromObject(new SomeSerializableClass { MyField1 = "Abraham Lincoln", MyField2 = true, MyField3 = 439 }),
- JTokenArrayField = new JArray(
- JToken.FromObject(new SomeSerializableClass { MyField1 = "George Washington", MyField2 = null, MyField3 = 216 }),
- JToken.FromObject(new SomeSerializableClass { MyField1 = "Thomas Jefferson", MyField2 = false, MyField3 = 631 }))
- };
-
- return Ok(new[] { s1, s2 });
- }
-
- [Serializable]
- public class SomeSerializableClass
- {
- [JsonProperty("my-field1")]
- public string MyField1 { get; set; }
-
- [JsonProperty("overridden-field2")]
- public bool? MyField2 { get; set; }
-
- public int MyField3 { get; set; }
- }
- }
-}
\ No newline at end of file
diff --git a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SearchController.cs b/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SearchController.cs
deleted file mode 100644
index 0d4c1667..00000000
--- a/JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp/Controllers/SearchController.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Collections.Generic;
-using System.Data.Entity;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Web.Http;
-using JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Models;
-
-namespace JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp.Controllers
-{
- public class SearchController : ApiController
- {
- private readonly TestDbContext _dbContext;
-
- public SearchController(TestDbContext dbContext)
- {
- _dbContext = dbContext;
- }
-
- public async Task> Get(string s)
- {
- IEnumerable