Exemple #1
0
        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);
        }
Exemple #2
0
 public UnitOfWork(PlayingoContext playingoContext, IMapper mapper)
 {
     _playingoContext = playingoContext;
     _mapper          = mapper;
 }
Exemple #3
0
 public ClientRepository(PlayingoContext playingoContext, IMapper mapper)
 {
     _playingoContext = playingoContext;
     _mapper          = mapper;
 }
Exemple #4
0
 public BoardGameRepository(PlayingoContext playingoContext, IMapper mapper)
 {
     _playingoContext = playingoContext;
     _mapper          = mapper;
 }