Skip to content

Commit 7014864

Browse files
committed
review
1 parent f1e0d7a commit 7014864

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SubDBSharp
2-
C#/CSharp Implementation of SubDb api
2+
C#/CSharp Implementation of SubDb API
33

44
# Status:
55
[![Build status](https://ci.appveyor.com/api/projects/status/9ih1fuaes28w6gtv?svg=true)](https://ci.appveyor.com/project/ivandrofly/subdbsharp)

UnitTest/SubDBClient.Test.cs renamed to SubDBSharp.UnitTest/SubDBClient.Test.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using SubDBSharp.Helpers;
2-
using System.Net.Http.Headers;
1+
using System.Net.Http.Headers;
32
using System.Text;
43
using System.Threading.Tasks;
4+
using SubDBSharp.Helpers;
55
using Xunit;
66

7-
namespace SubDBSharp.Test
7+
namespace SubDBSharp.UnitTest
88
{
99
public class UnitTest
1010
{
@@ -17,7 +17,7 @@ public async Task TestAvailableLanguages()
1717
var response = await subDbClient.GetAvailableLanguagesAsync();
1818
Assert.NotNull(response.Body);
1919

20-
var buffer = (byte[])response.Body;
20+
var buffer = (byte[]) response.Body;
2121
var body = Encoding.UTF8.GetString(buffer, 0, buffer.Length);
2222
var availableLanguages = ReponseParser.ParseGetAvailablesLanguages(body);
2323

@@ -30,7 +30,7 @@ public async Task TestSearchSubtitle()
3030
var subDbClient = new SubDBClient(GetProductInfo(), ApiUrls.SubDBApiSandBoxUrl);
3131
var response = await subDbClient.SearchSubtitleAsync("ffd8d4aa68033dc03d1c8ef373b9028c", false);
3232
Assert.NotNull(response.Body);
33-
var buffer = (byte[])response.Body;
33+
var buffer = (byte[]) response.Body;
3434
Assert.True(buffer.Length > 0);
3535
var body = Encoding.UTF8.GetString(buffer, 0, buffer.Length);
3636
var availableLanguages = ReponseParser.ParseGetAvailablesLanguages(body);
@@ -56,6 +56,6 @@ public async Task TestUploadSubtitle()
5656
Assert.True(response.StatusCode == System.Net.HttpStatusCode.Created);
5757
}
5858

59-
public static ProductHeaderValue GetProductInfo() => new ProductHeaderValue("UnitTest", "1.0");
59+
private static ProductHeaderValue GetProductInfo() => new ProductHeaderValue("SubDBSharp.UnitTest", "1.0");
6060
}
61-
}
61+
}

UnitTest/Utils.Test.cs renamed to SubDBSharp.UnitTest/Utils.Test.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using SubDBSharp.Helpers;
2-
using System.IO;
1+
using System.IO;
2+
using SubDBSharp.Helpers;
33
using Xunit;
44

5-
namespace SubDBSharp.Test
5+
namespace SubDBSharp.UnitTest
66
{
77
public class UtilsTest
88
{

SubDBSharp.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.28516.95
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTest", "UnitTest\UnitTest.csproj", "{A8791B2B-B148-47BA-9B9D-A9A2163CCA48}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SubDBSharp.UnitTest", "SubDBSharp.UnitTest\SubDBSharp.UnitTest.csproj", "{A8791B2B-B148-47BA-9B9D-A9A2163CCA48}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SubDBSharp", "src\SubDBSharp.csproj", "{D741CD9F-01AA-440D-BB49-0D0FD0B6B7DF}"
99
EndProject

0 commit comments

Comments
 (0)