public void Setup() { var options = new DbContextOptionsBuilder <PsuHistoryDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); _dbContext = new PsuHistoryDbContext(options.Options); _service = new ConscriptionPlaceService(_dbContext); }