Changed file hierarchy for tests

This commit is contained in:
2024-09-18 19:48:43 +03:00
parent 9d08a36c79
commit dd3019492a
7 changed files with 10 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore.Diagnostics; using Microsoft.EntityFrameworkCore.Diagnostics;
using DbContext = Infrastructure.Database.DbContext; using DbContext = Infrastructure.Database.DbContext;
namespace VisaApi.Database namespace VisaApi.Tests.Infrastructure.Database
{ {
public static class InMemoryContextProvider public static class InMemoryContextProvider
{ {

View File

@@ -9,7 +9,7 @@ using VisaApi.Fakers.Common;
using VisaApi.Services; using VisaApi.Services;
using Xunit; using Xunit;
namespace VisaApi.Database.Repositories namespace VisaApi.Tests.Infrastructure.Database.Repositories
{ {
[Collection(Collections.ContextUsingTestCollection)] [Collection(Collections.ContextUsingTestCollection)]
public class ApplicantsRepositoryTests public class ApplicantsRepositoryTests

View File

@@ -5,7 +5,7 @@ using Infrastructure.Database;
using Infrastructure.Database.Generic; using Infrastructure.Database.Generic;
using Xunit; using Xunit;
namespace VisaApi.Database.Repositories.Generic; namespace VisaApi.Tests.Infrastructure.Database.Repositories.Generic;
[Collection(Collections.ContextUsingTestCollection)] [Collection(Collections.ContextUsingTestCollection)]
public class GenericRepositoryTests public class GenericRepositoryTests

View File

@@ -1,7 +1,7 @@
using Domains.Users; using Domains.Users;
using Infrastructure.Database.Generic; using Infrastructure.Database.Generic;
namespace VisaApi.Database.Repositories.Generic namespace VisaApi.Tests.Infrastructure.Database.Repositories.Generic
{ {
public class TestGenericRepository(IGenericReader reader, IGenericWriter writer) : GenericRepository<User>(reader, writer); public class TestGenericRepository(IGenericReader reader, IGenericWriter writer) : GenericRepository<User>(reader, writer);
} }

View File

@@ -7,7 +7,7 @@ using Infrastructure.Database.Users.Repositories;
using VisaApi.Fakers.Common; using VisaApi.Fakers.Common;
using Xunit; using Xunit;
namespace VisaApi.Database.Repositories namespace VisaApi.Tests.Infrastructure.Database.Repositories
{ {
[Collection(Collections.ContextUsingTestCollection)] [Collection(Collections.ContextUsingTestCollection)]
public class UsersRepositoryTests public class UsersRepositoryTests

View File

@@ -11,7 +11,7 @@ using VisaApi.Fakers.VisaApplications;
using VisaApi.Services; using VisaApi.Services;
using Xunit; using Xunit;
namespace VisaApi.Database.Repositories namespace VisaApi.Tests.Infrastructure.Database.Repositories
{ {
[Collection(Collections.ContextUsingTestCollection)] [Collection(Collections.ContextUsingTestCollection)]
public class VisaApplicationsRepositoryTests public class VisaApplicationsRepositoryTests

View File

@@ -26,4 +26,8 @@
<ProjectReference Include="..\SchengenVisaApi\SchengenVisaApi.csproj" /> <ProjectReference Include="..\SchengenVisaApi\SchengenVisaApi.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Tests\Infrastructure\" />
</ItemGroup>
</Project> </Project>