From 69abb768f50ac6ce677952148799190c5ccd7ad6 Mon Sep 17 00:00:00 2001 From: prtsie Date: Mon, 16 Sep 2024 15:19:16 +0300 Subject: [PATCH] Created project for tests --- SchengenVisaApi/SchengenVisaApi.sln | 6 +++++ SchengenVisaApi/VisaApiTests/GlobalUsings.cs | 1 + .../Repositories/GenericRepositoryTests.cs | 9 +++++++ .../VisaApiTests/VisaApiTests.csproj | 26 +++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 SchengenVisaApi/VisaApiTests/GlobalUsings.cs create mode 100644 SchengenVisaApi/VisaApiTests/Repositories/GenericRepositoryTests.cs create mode 100644 SchengenVisaApi/VisaApiTests/VisaApiTests.csproj diff --git a/SchengenVisaApi/SchengenVisaApi.sln b/SchengenVisaApi/SchengenVisaApi.sln index 522c115..b1149c9 100644 --- a/SchengenVisaApi/SchengenVisaApi.sln +++ b/SchengenVisaApi/SchengenVisaApi.sln @@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisaApiClient", "VisaApiCli EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorWebAssemblyVisaApiClient", "BlazorWebAssemblyVisaApiClient\BlazorWebAssemblyVisaApiClient.csproj", "{3DB49E3C-AAC3-452C-AEBE-F4F72D6134F8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisaApiTests", "VisaApiTests\VisaApiTests.csproj", "{4CB6FBC4-99CB-453D-8499-A498FAE9683D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -42,5 +44,9 @@ Global {3DB49E3C-AAC3-452C-AEBE-F4F72D6134F8}.Debug|Any CPU.Build.0 = Debug|Any CPU {3DB49E3C-AAC3-452C-AEBE-F4F72D6134F8}.Release|Any CPU.ActiveCfg = Release|Any CPU {3DB49E3C-AAC3-452C-AEBE-F4F72D6134F8}.Release|Any CPU.Build.0 = Release|Any CPU + {4CB6FBC4-99CB-453D-8499-A498FAE9683D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CB6FBC4-99CB-453D-8499-A498FAE9683D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CB6FBC4-99CB-453D-8499-A498FAE9683D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CB6FBC4-99CB-453D-8499-A498FAE9683D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/SchengenVisaApi/VisaApiTests/GlobalUsings.cs b/SchengenVisaApi/VisaApiTests/GlobalUsings.cs new file mode 100644 index 0000000..c802f44 --- /dev/null +++ b/SchengenVisaApi/VisaApiTests/GlobalUsings.cs @@ -0,0 +1 @@ +global using Xunit; diff --git a/SchengenVisaApi/VisaApiTests/Repositories/GenericRepositoryTests.cs b/SchengenVisaApi/VisaApiTests/Repositories/GenericRepositoryTests.cs new file mode 100644 index 0000000..bee42d9 --- /dev/null +++ b/SchengenVisaApi/VisaApiTests/Repositories/GenericRepositoryTests.cs @@ -0,0 +1,9 @@ +namespace VisaApi.Repositories; + +public class GenericRepositoryTests +{ + [Fact] + public void Test1() + { + } +} diff --git a/SchengenVisaApi/VisaApiTests/VisaApiTests.csproj b/SchengenVisaApi/VisaApiTests/VisaApiTests.csproj new file mode 100644 index 0000000..9fadb7c --- /dev/null +++ b/SchengenVisaApi/VisaApiTests/VisaApiTests.csproj @@ -0,0 +1,26 @@ + + + + net8.0 + enable + enable + + false + true + VisaApi + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + +