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

            this.service = new AdminVideosService(dbContext, mapper);
        }
 public IndexModel(MagicOfSewingDbContext dbContext, IMapper mapper) :
     base(dbContext)
 {
     this.mapper  = mapper;
     this.Fabrics = new List <FabricConciseViewModel>();
     this.Models  = new PaginatedList <FabricConciseViewModel>(new List <FabricConciseViewModel>(), 1, 1);
 }
 public DetailsModel(MagicOfSewingDbContext dbContext, IMapper mapper, UserManager <User> userManager, IAdminPostsService postsService)
     : base(dbContext)
 {
     this.mapper       = mapper;
     this.userManager  = userManager;
     this.postsService = postsService;
 }
Ejemplo n.º 4
0
 public UsersService(MagicOfSewingDbContext dbContext, IMapper mapper, UserManager <User> userManager)
     : base(dbContext, mapper)
 {
     this.userManager = userManager;
 }
Ejemplo n.º 5
0
 public ContactsModel(MagicOfSewingDbContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 6
0
 public BasePage(MagicOfSewingDbContext dbContext)
 {
     this.DbContext = dbContext;
 }
Ejemplo n.º 7
0
 public ArticlesService(MagicOfSewingDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
 public AdminMessagesServices(MagicOfSewingDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
 public AdminStrategiesService(MagicOfSewingDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
 public AdminPostsService(MagicOfSewingDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
 public VideosService(MagicOfSewingDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
Ejemplo n.º 12
0
 public BaseEFService(MagicOfSewingDbContext dbContext, IMapper mapper)
 {
     this.DbContext = dbContext;
     this.Mapper    = mapper;
 }