Browse Source

Changes as requested

BaronGreenback 4 years ago
parent
commit
53bfe0e77d

+ 1 - 2
tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj

@@ -36,8 +36,7 @@
 
   <ItemGroup>
     <ProjectReference Include="../../Jellyfin.Api/Jellyfin.Api.csproj" />
-    <ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" />
-    <ProjectReference Include="..\Jellyfin.Server.Integration.Tests\Jellyfin.Server.Integration.Tests.csproj" />
+    <ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" />    
   </ItemGroup>
 
 </Project>

+ 3 - 3
Jellyfin.Api/Controllers/TestsController.cs → tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs

@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Linq;
 using Jellyfin.Api.Constants;
 using Microsoft.AspNetCore.Authorization;
@@ -8,9 +8,9 @@ using Microsoft.AspNetCore.Mvc;
 namespace Jellyfin.Api.Controllers
 {
     /// <summary>
-    /// Controller for testing.
+    /// Controller for testing the encoded url.
     /// </summary>
-    public class TestsController : BaseJellyfinApiController
+    public class EncoderController : BaseJellyfinApiController
     {
         /// <summary>
         /// Tests the url decoding.

+ 1 - 1
tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs

@@ -24,7 +24,7 @@ namespace Jellyfin.Server.Integration.Tests
         {
             var client = _factory.CreateClient();
 
-            var response = await client.GetAsync("Tests/UrlDecode?" + sourceUrl).ConfigureAwait(false);
+            var response = await client.GetAsync("Encoder/UrlDecode?" + sourceUrl).ConfigureAwait(false);
             Assert.Equal(HttpStatusCode.OK, response.StatusCode);
             string reply = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
             Assert.Equal(unencodedUrl, reply);