public RentalUnitOfWorkTests() { var contextOptions = new DbContextOptionsBuilder <PlayingoContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; IMapper mapper = new Mapper(new MapperConfiguration(cfg => { cfg.AddProfile <EntitiesMapping>(); })); _testContext = new PlayingoContext(contextOptions); _sut = new UnitOfWork(new PlayingoContext(contextOptions), mapper); }
public UnitOfWork(PlayingoContext playingoContext, IMapper mapper) { _playingoContext = playingoContext; _mapper = mapper; }
public ClientRepository(PlayingoContext playingoContext, IMapper mapper) { _playingoContext = playingoContext; _mapper = mapper; }
public BoardGameRepository(PlayingoContext playingoContext, IMapper mapper) { _playingoContext = playingoContext; _mapper = mapper; }