Created tests for the core module

This commit is contained in:
2025-01-18 16:01:35 +01:00
parent a5062ec581
commit afe8a41f6c
20 changed files with 1097 additions and 26 deletions

View File

@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore;
namespace HopFrame.Core.Tests.Models;
// A mock DbContext for testing purposes
public class MockDbContext : DbContext {
public DbSet<MockModel> Models { get; set; }
public DbSet<MockModel2> Models2 { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
optionsBuilder.UseInMemoryDatabase(nameof(MockDbContext));
}
}