diff options
author | crupest <crupest@outlook.com> | 2020-03-10 03:04:23 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-10 03:04:23 +0800 |
commit | e7ca87f25dae2f806469043ee556d4790d9ebcae (patch) | |
tree | 17d64590d81fc02a2b8e3df88963288b0ca85bb7 /Timeline.Tests | |
parent | 893ed4eee63997f2d91d6715d4355d9f767b2c40 (diff) | |
download | timeline-e7ca87f25dae2f806469043ee556d4790d9ebcae.tar.gz timeline-e7ca87f25dae2f806469043ee556d4790d9ebcae.tar.bz2 timeline-e7ca87f25dae2f806469043ee556d4790d9ebcae.zip |
...
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 258ebf4e..3f8c855c 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 Timeline.Models.Http;
+using TimelineApp.Models.Http;
using Xunit;
using Xunit.Abstractions;
-namespace Timeline.Tests
+namespace TimelineApp.Tests
{
public class ErrorCodeTest
{
diff --git a/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs b/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs index b78309c0..516c34e9 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 Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public static class AsyncFunctionAssertionsExtensions
{
diff --git a/Timeline.Tests/Helpers/HttpClientExtensions.cs b/Timeline.Tests/Helpers/HttpClientExtensions.cs index 6513bbe7..952266b3 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 Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public static class HttpClientExtensions
{
diff --git a/Timeline.Tests/Helpers/ImageHelper.cs b/Timeline.Tests/Helpers/ImageHelper.cs index 9bed0917..ffbb38ae 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 Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public static class ImageHelper
{
diff --git a/Timeline.Tests/Helpers/ParameterInfoAssertions.cs b/Timeline.Tests/Helpers/ParameterInfoAssertions.cs index d3e5a41e..a714f410 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 Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public class ParameterInfoValueFormatter : IValueFormatter
{
diff --git a/Timeline.Tests/Helpers/ReflectionHelper.cs b/Timeline.Tests/Helpers/ReflectionHelper.cs index 3f6036e3..16d68bb1 100644 --- a/Timeline.Tests/Helpers/ReflectionHelper.cs +++ b/Timeline.Tests/Helpers/ReflectionHelper.cs @@ -1,7 +1,7 @@ using System.Linq;
using System.Reflection;
-namespace Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public static class ReflectionHelper
{
diff --git a/Timeline.Tests/Helpers/ResponseAssertions.cs b/Timeline.Tests/Helpers/ResponseAssertions.cs index f01a0677..4984d224 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 Timeline.Models.Converters;
-using Timeline.Models.Http;
+using TimelineApp.Models.Converters;
+using TimelineApp.Models.Http;
-namespace Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public class HttpResponseMessageValueFormatter : IValueFormatter
{
diff --git a/Timeline.Tests/Helpers/TestApplication.cs b/Timeline.Tests/Helpers/TestApplication.cs index 52c2f2e2..c655d337 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 Timeline.Entities;
-using Timeline.Migrations;
+using TimelineApp.Entities;
+using TimelineApp.Migrations;
-namespace Timeline.Tests.Helpers
+namespace TimelineApp.Tests.Helpers
{
public class TestApplication : IDisposable
{
diff --git a/Timeline.Tests/IntegratedTests/AuthorizationTest.cs b/Timeline.Tests/IntegratedTests/AuthorizationTest.cs index 4aa6b3ae..69be9187 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 Timeline.Tests.Helpers;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests.IntegratedTests
+namespace TimelineApp.Tests.IntegratedTests
{
public class AuthorizationTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index dfde2ea5..e265c16e 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 Timeline.Models.Http; -using Timeline.Services;
-using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Services;
+using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.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 7d0a68e8..b6d3e827 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 Timeline.Models.Http; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class PersonalTimelineTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/TimelineTest.cs b/Timeline.Tests/IntegratedTests/TimelineTest.cs index 14a0a59e..cad74e6c 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 Timeline.Models.Http;
-using Timeline.Tests.Helpers;
+using TimelineApp.Models.Http;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests.IntegratedTests
+namespace TimelineApp.Tests.IntegratedTests
{
public class TimelineTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/TokenTest.cs b/Timeline.Tests/IntegratedTests/TokenTest.cs index 928d546c..10af46af 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 Timeline.Models.Http;
-using Timeline.Services;
-using Timeline.Tests.Helpers;
+using TimelineApp.Models.Http;
+using TimelineApp.Services;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests.IntegratedTests
+namespace TimelineApp.Tests.IntegratedTests
{
public class TokenTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/UserAvatarTest.cs b/Timeline.Tests/IntegratedTests/UserAvatarTest.cs index fa0120f1..8fd1d687 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 Timeline.Models.Http;
-using Timeline.Services;
-using Timeline.Tests.Helpers;
+using TimelineApp.Models.Http;
+using TimelineApp.Services;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests.IntegratedTests
+namespace TimelineApp.Tests.IntegratedTests
{
public class UserAvatarTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/IntegratedTests/UserTest.cs b/Timeline.Tests/IntegratedTests/UserTest.cs index 8ce76299..eed13565 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 Timeline.Models.Http;
-using Timeline.Tests.Helpers;
+using TimelineApp.Models.Http;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests.IntegratedTests
+namespace TimelineApp.Tests.IntegratedTests
{
public class UserTest : IntegratedTestBase
{
diff --git a/Timeline.Tests/PasswordGenerator.cs b/Timeline.Tests/PasswordGenerator.cs index 6c07836b..bb6c538d 100644 --- a/Timeline.Tests/PasswordGenerator.cs +++ b/Timeline.Tests/PasswordGenerator.cs @@ -1,9 +1,9 @@ using System;
-using Timeline.Services;
+using TimelineApp.Services;
using Xunit;
using Xunit.Abstractions;
-namespace Timeline.Tests
+namespace TimelineApp.Tests
{
public class PasswordGenerator
{
diff --git a/Timeline.Tests/Timeline.Tests.csproj b/Timeline.Tests/TimelineApp.Tests.csproj index 00c1e103..1f445f8b 100644 --- a/Timeline.Tests/Timeline.Tests.csproj +++ b/Timeline.Tests/TimelineApp.Tests.csproj @@ -28,6 +28,6 @@ </ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\Timeline\Timeline.csproj" />
+ <ProjectReference Include="..\Timeline\TimelineApp.csproj" />
</ItemGroup>
</Project>
diff --git a/Timeline.Tests/UsernameValidatorUnitTest.cs b/Timeline.Tests/UsernameValidatorUnitTest.cs index 8824362b..f436c091 100644 --- a/Timeline.Tests/UsernameValidatorUnitTest.cs +++ b/Timeline.Tests/UsernameValidatorUnitTest.cs @@ -1,9 +1,9 @@ using FluentAssertions;
-using Timeline.Models.Validation;
-using Timeline.Tests.Helpers;
+using TimelineApp.Models.Validation;
+using TimelineApp.Tests.Helpers;
using Xunit;
-namespace Timeline.Tests
+namespace TimelineApp.Tests
{
public class UsernameValidatorUnitTest : IClassFixture<UsernameValidator>
{
|