From 52c59d7cd949ee6ccc89fbb25231666e1e589fe2 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 10 Mar 2020 15:46:59 +0800 Subject: Revert namespace name change. --- Timeline.Tests/ErrorCodeTest.cs | 4 +-- .../Helpers/AsyncFunctionAssertionsExtensions.cs | 2 +- Timeline.Tests/Helpers/HttpClientExtensions.cs | 2 +- Timeline.Tests/Helpers/ImageHelper.cs | 2 +- Timeline.Tests/Helpers/ParameterInfoAssertions.cs | 2 +- Timeline.Tests/Helpers/ReflectionHelper.cs | 2 +- Timeline.Tests/Helpers/ResponseAssertions.cs | 6 ++-- Timeline.Tests/Helpers/TestApplication.cs | 6 ++-- .../IntegratedTests/AuthorizationTest.cs | 4 +-- .../IntegratedTests/IntegratedTestBase.cs | 8 +++--- .../IntegratedTests/PersonalTimelineTest.cs | 6 ++-- Timeline.Tests/IntegratedTests/TimelineTest.cs | 6 ++-- Timeline.Tests/IntegratedTests/TokenTest.cs | 8 +++--- Timeline.Tests/IntegratedTests/UserAvatarTest.cs | 8 +++--- Timeline.Tests/IntegratedTests/UserTest.cs | 6 ++-- Timeline.Tests/PasswordGenerator.cs | 4 +-- Timeline.Tests/Timeline.Tests.csproj | 33 ++++++++++++++++++++++ Timeline.Tests/TimelineApp.Tests.csproj | 33 ---------------------- Timeline.Tests/UsernameValidatorUnitTest.cs | 6 ++-- 19 files changed, 74 insertions(+), 74 deletions(-) create mode 100644 Timeline.Tests/Timeline.Tests.csproj delete mode 100644 Timeline.Tests/TimelineApp.Tests.csproj (limited to 'Timeline.Tests') 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>, 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/Timeline.Tests.csproj b/Timeline.Tests/Timeline.Tests.csproj new file mode 100644 index 00000000..1f00cc6c --- /dev/null +++ b/Timeline.Tests/Timeline.Tests.csproj @@ -0,0 +1,33 @@ + + + + netcoreapp3.1 + + 8.0 + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + diff --git a/Timeline.Tests/TimelineApp.Tests.csproj b/Timeline.Tests/TimelineApp.Tests.csproj deleted file mode 100644 index 1f445f8b..00000000 --- a/Timeline.Tests/TimelineApp.Tests.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - netcoreapp3.1 - - 8.0 - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - 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 { -- cgit v1.2.3