Polish 7 (#3381)
This commit is contained in:
parent
cb810a2d8f
commit
3e3b6ba92b
26 changed files with 1631 additions and 212 deletions
|
@ -10,6 +10,7 @@ using API.Helpers;
|
|||
using API.Helpers.Builders;
|
||||
using API.Services;
|
||||
using AutoMapper;
|
||||
using Hangfire;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
@ -48,6 +49,9 @@ public abstract class AbstractDbTest
|
|||
var config = new MapperConfiguration(cfg => cfg.AddProfile<AutoMapperProfiles>());
|
||||
var mapper = config.CreateMapper();
|
||||
|
||||
// Set up Hangfire to use in-memory storage for testing
|
||||
GlobalConfiguration.Configuration.UseInMemoryStorage();
|
||||
|
||||
|
||||
_unitOfWork = new UnitOfWork(_context, mapper, null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue