diff options
author | crupest <crupest@outlook.com> | 2020-03-10 15:46:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-10 15:46:59 +0800 |
commit | 52c59d7cd949ee6ccc89fbb25231666e1e589fe2 (patch) | |
tree | 65b925263102aa29f4c58b12277e0c1c1368fe1f /Timeline.Tests | |
parent | d33300f976f3a237195e9de4d691ce1ee4b3d345 (diff) | |
download | timeline-52c59d7cd949ee6ccc89fbb25231666e1e589fe2.tar.gz timeline-52c59d7cd949ee6ccc89fbb25231666e1e589fe2.tar.bz2 timeline-52c59d7cd949ee6ccc89fbb25231666e1e589fe2.zip |
Revert namespace name change.
Diffstat (limited to 'Timeline.Tests')
18 files changed, 42 insertions, 42 deletions
diff --git a/Timeline.Tests/ErrorCodeTest.cs b/Timeline.Tests/ErrorCodeTest.cs index 3f8c855c..258ebf4e 100644 --- a/Timeline.Tests/ErrorCodeTest.cs +++ b/Timeline.Tests/ErrorCodeTest.cs @@ -3,11 +3,11 @@ using System; using System.Collections.Generic;
using System.Linq;
using System.Reflection;
-using TimelineApp.Models.Http;
+using Timeline.Models.Http;
using Xunit;
using Xunit.Abstractions;
-namespace TimelineApp.Tests
+namespace Timeline.Tests
{
public class ErrorCodeTest
{
diff --git a/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs b/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs index 516c34e9..b78309c0 100644 --- a/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs +++ b/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs @@ -4,7 +4,7 @@ using FluentAssertions.Specialized; using System;
using System.Threading.Tasks;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public static class AsyncFunctionAssertionsExtensions
{
diff --git a/Timeline.Tests/Helpers/HttpClientExtensions.cs b/Timeline.Tests/Helpers/HttpClientExtensions.cs index 952266b3..6513bbe7 100644 --- a/Timeline.Tests/Helpers/HttpClientExtensions.cs +++ b/Timeline.Tests/Helpers/HttpClientExtensions.cs @@ -6,7 +6,7 @@ using System.Net.Mime; using System.Text;
using System.Threading.Tasks;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public static class HttpClientExtensions
{
diff --git a/Timeline.Tests/Helpers/ImageHelper.cs b/Timeline.Tests/Helpers/ImageHelper.cs index ffbb38ae..9bed0917 100644 --- a/Timeline.Tests/Helpers/ImageHelper.cs +++ b/Timeline.Tests/Helpers/ImageHelper.cs @@ -3,7 +3,7 @@ using SixLabors.ImageSharp.Formats; using SixLabors.ImageSharp.PixelFormats;
using System.IO;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public static class ImageHelper
{
diff --git a/Timeline.Tests/Helpers/ParameterInfoAssertions.cs b/Timeline.Tests/Helpers/ParameterInfoAssertions.cs index a714f410..d3e5a41e 100644 --- a/Timeline.Tests/Helpers/ParameterInfoAssertions.cs +++ b/Timeline.Tests/Helpers/ParameterInfoAssertions.cs @@ -5,7 +5,7 @@ using FluentAssertions.Primitives; using System;
using System.Reflection;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public class ParameterInfoValueFormatter : IValueFormatter
{
diff --git a/Timeline.Tests/Helpers/ReflectionHelper.cs b/Timeline.Tests/Helpers/ReflectionHelper.cs index 16d68bb1..3f6036e3 100644 --- a/Timeline.Tests/Helpers/ReflectionHelper.cs +++ b/Timeline.Tests/Helpers/ReflectionHelper.cs @@ -1,7 +1,7 @@ using System.Linq;
using System.Reflection;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public static class ReflectionHelper
{
diff --git a/Timeline.Tests/Helpers/ResponseAssertions.cs b/Timeline.Tests/Helpers/ResponseAssertions.cs index 4984d224..f01a0677 100644 --- a/Timeline.Tests/Helpers/ResponseAssertions.cs +++ b/Timeline.Tests/Helpers/ResponseAssertions.cs @@ -9,10 +9,10 @@ using System.Net.Http; using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
-using TimelineApp.Models.Converters;
-using TimelineApp.Models.Http;
+using Timeline.Models.Converters;
+using Timeline.Models.Http;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public class HttpResponseMessageValueFormatter : IValueFormatter
{
diff --git a/Timeline.Tests/Helpers/TestApplication.cs b/Timeline.Tests/Helpers/TestApplication.cs index c655d337..52c2f2e2 100644 --- a/Timeline.Tests/Helpers/TestApplication.cs +++ b/Timeline.Tests/Helpers/TestApplication.cs @@ -6,10 +6,10 @@ using Microsoft.Extensions.DependencyInjection; using System;
using System.Collections.Generic;
using System.IO;
-using TimelineApp.Entities;
-using TimelineApp.Migrations;
+using Timeline.Entities;
+using Timeline.Migrations;
-namespace TimelineApp.Tests.Helpers
+namespace Timeline.Tests.Helpers
{
public class TestApplication : IDisposable
{
diff --git a/Timeline.Tests/IntegratedTests/AuthorizationTest.cs b/Timeline.Tests/IntegratedTests/AuthorizationTest.cs index 69be9187..4aa6b3ae 100644 --- a/Timeline.Tests/IntegratedTests/AuthorizationTest.cs +++ b/Timeline.Tests/IntegratedTests/AuthorizationTest.cs @@ -2,10 +2,10 @@ using FluentAssertions; using Microsoft.AspNetCore.Mvc.Testing;
using System.Net;
using System.Threading.Tasks;
-using TimelineApp.Tests.Helpers;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests.IntegratedTests
+namespace Timeline.Tests.IntegratedTests
{
public class AuthorizationTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index e265c16e..dfde2ea5 100644 --- a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -5,12 +5,12 @@ using System; using System.Collections.Generic;
using System.Net.Http; using System.Threading.Tasks; -using TimelineApp.Models.Http; -using TimelineApp.Services;
-using TimelineApp.Tests.Helpers; +using Timeline.Models.Http; +using Timeline.Services;
+using Timeline.Tests.Helpers; using Xunit; -namespace TimelineApp.Tests.IntegratedTests +namespace Timeline.Tests.IntegratedTests { public abstract class IntegratedTestBase : IClassFixture<WebApplicationFactory<Startup>>, IDisposable { diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs index b6d3e827..7d0a68e8 100644 --- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs @@ -5,11 +5,11 @@ using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; -using TimelineApp.Models.Http; -using TimelineApp.Tests.Helpers; +using Timeline.Models.Http; +using Timeline.Tests.Helpers; using Xunit; -namespace TimelineApp.Tests.IntegratedTests +namespace Timeline.Tests.IntegratedTests { public class PersonalTimelineTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/TimelineTest.cs b/Timeline.Tests/IntegratedTests/TimelineTest.cs index cad74e6c..14a0a59e 100644 --- a/Timeline.Tests/IntegratedTests/TimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/TimelineTest.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
-using TimelineApp.Models.Http;
-using TimelineApp.Tests.Helpers;
+using Timeline.Models.Http;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests.IntegratedTests
+namespace Timeline.Tests.IntegratedTests
{
public class TimelineTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/TokenTest.cs b/Timeline.Tests/IntegratedTests/TokenTest.cs index 10af46af..928d546c 100644 --- a/Timeline.Tests/IntegratedTests/TokenTest.cs +++ b/Timeline.Tests/IntegratedTests/TokenTest.cs @@ -4,12 +4,12 @@ using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
-using TimelineApp.Models.Http;
-using TimelineApp.Services;
-using TimelineApp.Tests.Helpers;
+using Timeline.Models.Http;
+using Timeline.Services;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests.IntegratedTests
+namespace Timeline.Tests.IntegratedTests
{
public class TokenTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/UserAvatarTest.cs b/Timeline.Tests/IntegratedTests/UserAvatarTest.cs index 8fd1d687..fa0120f1 100644 --- a/Timeline.Tests/IntegratedTests/UserAvatarTest.cs +++ b/Timeline.Tests/IntegratedTests/UserAvatarTest.cs @@ -13,12 +13,12 @@ using System.Net; using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
-using TimelineApp.Models.Http;
-using TimelineApp.Services;
-using TimelineApp.Tests.Helpers;
+using Timeline.Models.Http;
+using Timeline.Services;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests.IntegratedTests
+namespace Timeline.Tests.IntegratedTests
{
public class UserAvatarTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/UserTest.cs b/Timeline.Tests/IntegratedTests/UserTest.cs index eed13565..8ce76299 100644 --- a/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/Timeline.Tests/IntegratedTests/UserTest.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
-using TimelineApp.Models.Http;
-using TimelineApp.Tests.Helpers;
+using Timeline.Models.Http;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests.IntegratedTests
+namespace Timeline.Tests.IntegratedTests
{
public class UserTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/PasswordGenerator.cs b/Timeline.Tests/PasswordGenerator.cs index bb6c538d..6c07836b 100644 --- a/Timeline.Tests/PasswordGenerator.cs +++ b/Timeline.Tests/PasswordGenerator.cs @@ -1,9 +1,9 @@ using System;
-using TimelineApp.Services;
+using Timeline.Services;
using Xunit;
using Xunit.Abstractions;
-namespace TimelineApp.Tests
+namespace Timeline.Tests
{
public class PasswordGenerator
{
diff --git a/Timeline.Tests/TimelineApp.Tests.csproj b/Timeline.Tests/Timeline.Tests.csproj index 1f445f8b..1f00cc6c 100644 --- a/Timeline.Tests/TimelineApp.Tests.csproj +++ b/Timeline.Tests/Timeline.Tests.csproj @@ -28,6 +28,6 @@ </ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\Timeline\TimelineApp.csproj" />
+ <ProjectReference Include="..\Timeline\Timeline.csproj" />
</ItemGroup>
</Project>
diff --git a/Timeline.Tests/UsernameValidatorUnitTest.cs b/Timeline.Tests/UsernameValidatorUnitTest.cs index f436c091..8824362b 100644 --- a/Timeline.Tests/UsernameValidatorUnitTest.cs +++ b/Timeline.Tests/UsernameValidatorUnitTest.cs @@ -1,9 +1,9 @@ using FluentAssertions;
-using TimelineApp.Models.Validation;
-using TimelineApp.Tests.Helpers;
+using Timeline.Models.Validation;
+using Timeline.Tests.Helpers;
using Xunit;
-namespace TimelineApp.Tests
+namespace Timeline.Tests
{
public class UsernameValidatorUnitTest : IClassFixture<UsernameValidator>
{
|