protected BaseEFService(
     WCRDbContext dbContext,
     IMapper mapper)
 {
     this.DbContext = dbContext;
     this.Mapper    = mapper;
 }
        public static WCRDbContext GetDbContext()
        {
            var options = new DbContextOptionsBuilder <WCRDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;
            var dbContext = new WCRDbContext(options);

            return(dbContext);
        }
Example #3
0
 public StatisticsService(WCRDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
 }
Example #4
0
 public void InitializeTests()
 {
     this.dbContext = MockDbContext.GetDbContext();
     this.mapper    = MockAutoMapper.GetAutoMapper();
 }
 public ModerationService(WCRDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
 }
 public RoundService(WCRDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
 }
 public AdminService(WCRDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
 }
Example #8
0
 public void InitializeTests()
 {
     this.dbContext = MockDbContext.GetDbContext();
 }
Example #9
0
 public GroupService(WCRDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
 }