示例#1
0
 public AdminController
 (
     UserManager <ApplicationUser> userManager,
     IMapper mapper,
     IComponentTypeService componentTypeService,
     IUnitMultiplierService unitMultiplierService,
     IStaticSiteInfoService staticSiteInfoService,
     IComponentTypeDetailService componentTypeDetailService,
     ICloudinaryService cloudinaryService,
     HtmlSanitizer htmlSanitizer
 )
 {
     _userManager                = userManager;
     _mapper                     = mapper;
     _componentTypeService       = componentTypeService;
     _unitMultiplierService      = unitMultiplierService;
     _staticSiteInfoService      = staticSiteInfoService;
     _componentTypeDetailService = componentTypeDetailService;
     _cloudinaryService          = cloudinaryService;
     _htmlSanitizer              = htmlSanitizer;
 }
 public MyComponentsController
 (
     UserManager <ApplicationUser> userManager,
     IMapper mapper,
     IComponentTypeService componentTypeService,
     IUnitMultiplierService unitMultiplierService,
     IStaticSiteInfoService staticSiteInfoService,
     IUserComponentTypeService userComponentTypeService,
     IUserComponentTypeDetailService userComponentTypeDetailService,
     IComponentTypeDetailService componentTypeDetailService,
     ICloudinaryService cloudinaryService
 )
 {
     _userManager                    = userManager;
     _mapper                         = mapper;
     _componentTypeService           = componentTypeService;
     _unitMultiplierService          = unitMultiplierService;
     _staticSiteInfoService          = staticSiteInfoService;
     _userComponentTypeService       = userComponentTypeService;
     _userComponentTypeDetailService = userComponentTypeDetailService;
     _componentTypeDetailService     = componentTypeDetailService;
     _cloudinaryService              = cloudinaryService;
 }
 public PrivacyController(IStaticSiteInfoService staticSiteInfoService, HtmlSanitizer htmlSanitizer)
 {
     _staticSiteInfoService = staticSiteInfoService;
     _htmlSanitizer         = htmlSanitizer;
 }
 public StaticSiteInfoServiceTests()
 {
     _staticSiteInfoService = new StaticSiteInfoService(SCManagerDbContext);
 }
示例#5
0
 public AboutController(IStaticSiteInfoService staticSiteInfoService)
 {
     _staticSiteInfoService = staticSiteInfoService;
 }