using ManagerService.Data; using Microsoft.EntityFrameworkCore; namespace ManagerService.Tests.Infrastructure { public static class DbContextFactory { public static MyInfoMateDbContext Create() { var options = new DbContextOptionsBuilder() .UseInMemoryDatabase(System.Guid.NewGuid().ToString()) .Options; return new MyInfoMateDbContext(options); } } }