public void Initialize()
        {
            this.dbContext = MockDbContext.GetContext();
            var mapper = MockAutoMapper.GetMapper();

            this.categories = new CategoryService(this.dbContext, mapper);
        }
Beispiel #2
0
        public void InitializeTests()
        {
            this.context = MockDbContext.GetContext();
            this.service = new AdminRewardsService(context, MockAutoMapper.GetMapper());

            CreateInitialEvents();
        }
        public void InitializeTests()
        {
            this.dbContext = MockDbContext.GetDbContext();
            var mapper = MockAutoMapper.GetMapper();

            this.service = new AdminVideosService(dbContext, mapper);
        }
        public void InitializeTests()
        {
            this.dbContext = MockDbContext.GetDbContext();
            var mapper = MockAutoMapper.GetMapper();

            this.townsService     = new TownsService(dbContext, mapper);
            this.companiesService = new CompaniesService(dbContext, mapper, townsService);
        }
Beispiel #5
0
 public void InitializeTests()
 {
     this.dbContext = MockDbContext.GetContext();
     this.mapper    = MockAutoMapper.GetMapper();
 }
 public void Initialize()
 {
     this.dbContext    = MockDbContext.GetDbContext();
     this.genreService = new ModeratorGenreService(this.dbContext, MockAutoMapper.GetMapper());
 }
Beispiel #7
0
 public void TestsSetup()
 {
     this.DbContext = MockDbContext.GetDbContext();
     this.Mapper    = MockAutoMapper.GetMapper();
 }
Beispiel #8
0
 public void InitializeTests()
 {
     this.dbContext = MockDbContext.GetContext();
     this.service   = new AdminProductService(this.dbContext, MockAutoMapper.GetMapper());
 }
Beispiel #9
0
 public void InitializeTests()
 {
     this.db      = MockDbContext.GetContext();
     this.mapper  = MockAutoMapper.GetMapper();
     this.service = new Lob(this.db);
 }
 public void InitializeTests()
 {
     this.dbContext = MockDbContext.GetContext();
     this.service   = new ModeratorCategoryService(dbContext, MockAutoMapper.GetMapper());
 }