Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite URL Routing #3

Merged
merged 7 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions MSOC.Backend.Tests/GameApplicationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ protected override IHost CreateHost(IHostBuilder builder)
var gameDatabase = services.SingleOrDefault(d => d.ServiceType == typeof(DbContextOptions<GameDatabaseService>));
var trackDatabase = services.SingleOrDefault(d => d.ServiceType == typeof(DbContextOptions<TrackDatabaseService>));
var schoolDatabase = services.SingleOrDefault(d => d.ServiceType == typeof(DbContextOptions<SchoolDatabaseService>));

if (gameDatabase != null) services.Remove(gameDatabase);
if (trackDatabase != null) services.Remove(trackDatabase);
if (schoolDatabase != null) services.Remove(schoolDatabase);

var path = Directory.CreateDirectory(AppContext.BaseDirectory)
.Parent!.Parent!.Parent!.Parent!.ToString();

services.AddDbContext<SchoolDatabaseService>(
o => o.UseSqlite($"Filename={path}/MSOC.Backend/schools.db")
// ServiceLifetime.Transient
);

services.AddDbContext<TrackDatabaseService>(
o => o.UseSqlite($"Filename={path}/MSOC.Backend/tracks.db")
// ServiceLifetime.Transient
Expand Down
251 changes: 0 additions & 251 deletions MSOC.Backend.Tests/Integration/AdminControllerTest.cs

This file was deleted.

Loading
Loading