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