From 2624fba3029a1bbd35e1538a22d71d7ebf7f6e87 Mon Sep 17 00:00:00 2001 From: tleodev Date: Wed, 8 Jan 2025 18:21:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20critical=20path?= =?UTF-8?q?=20problem=20for=20swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConsoleTest/ConsoleTest.csproj | 19 ---------------- ConsoleTest/Program.cs | 23 ------------------- TestAPI/TestAPI.csproj | 34 ---------------------------- TestConsoleApi/TestConsoleApi.csproj | 16 ------------- UnitTestEF/GlobalUsings.cs | 1 - UnitTestEF/UnitTestEF.csproj | 28 ----------------------- 6 files changed, 121 deletions(-) delete mode 100644 ConsoleTest/ConsoleTest.csproj delete mode 100644 ConsoleTest/Program.cs delete mode 100644 TestAPI/TestAPI.csproj delete mode 100644 TestConsoleApi/TestConsoleApi.csproj delete mode 100644 UnitTestEF/GlobalUsings.cs delete mode 100644 UnitTestEF/UnitTestEF.csproj diff --git a/ConsoleTest/ConsoleTest.csproj b/ConsoleTest/ConsoleTest.csproj deleted file mode 100644 index 76eaf5a..0000000 --- a/ConsoleTest/ConsoleTest.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - Exe - net8.0 - enable - enable - Windows - - - - - - - - - - - diff --git a/ConsoleTest/Program.cs b/ConsoleTest/Program.cs deleted file mode 100644 index e9d5786..0000000 --- a/ConsoleTest/Program.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Infrastructure; -using Infrastructure.Entities; -using Infrastructure.Stub; -using Microsoft.Data.Sqlite; -using Microsoft.EntityFrameworkCore; - -var connection = new SqliteConnection("DataSource=:memory:"); -connection.Open(); -var options = new DbContextOptionsBuilder() - .UseSqlite(connection) - .Options; - -await using (var context = new StubbedContext(options)) -{ - Console.WriteLine("\n============Users============"); - //Display all users - var users = await context.Users.ToListAsync(); - Console.WriteLine("Diplay the Users: (Tolal:" + users.Count + ")"); - foreach (var userEntity in users) Console.WriteLine(userEntity); -} - -connection.Close(); \ No newline at end of file diff --git a/TestAPI/TestAPI.csproj b/TestAPI/TestAPI.csproj deleted file mode 100644 index 3ff6626..0000000 --- a/TestAPI/TestAPI.csproj +++ /dev/null @@ -1,34 +0,0 @@ - - - - net8.0 - enable - enable - - false - true - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/TestConsoleApi/TestConsoleApi.csproj b/TestConsoleApi/TestConsoleApi.csproj deleted file mode 100644 index 2fe15c3..0000000 --- a/TestConsoleApi/TestConsoleApi.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - - - diff --git a/UnitTestEF/GlobalUsings.cs b/UnitTestEF/GlobalUsings.cs deleted file mode 100644 index ab67c7e..0000000 --- a/UnitTestEF/GlobalUsings.cs +++ /dev/null @@ -1 +0,0 @@ -global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/UnitTestEF/UnitTestEF.csproj b/UnitTestEF/UnitTestEF.csproj deleted file mode 100644 index 8d54d2f..0000000 --- a/UnitTestEF/UnitTestEF.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - net8.0 - enable - enable - - false - true - UnitTestEF - - - - - - - - - - - - - - - - - -