Changed file hierarchy for tests
This commit is contained in:
		| @@ -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 | ||||||
|     { |     { | ||||||
| @@ -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 | ||||||
| @@ -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 | ||||||
| @@ -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); | ||||||
| } | } | ||||||
| @@ -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 | ||||||
| @@ -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 | ||||||
| @@ -26,4 +26,8 @@ | |||||||
|       <ProjectReference Include="..\SchengenVisaApi\SchengenVisaApi.csproj" /> |       <ProjectReference Include="..\SchengenVisaApi\SchengenVisaApi.csproj" /> | ||||||
|     </ItemGroup> |     </ItemGroup> | ||||||
|  |  | ||||||
|  |     <ItemGroup> | ||||||
|  |       <Folder Include="Tests\Infrastructure\" /> | ||||||
|  |     </ItemGroup> | ||||||
|  |  | ||||||
| </Project> | </Project> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user