Esempio n. 1
0
 public ExternalLinksController(IExternalLinkService externalLinkService, IUsersService userService, IPermissionService permissionService, IPictureService uploadService)
 {
     _externalLinkService = externalLinkService;
     _userService         = userService;
     _permissionService   = permissionService;
     _uploadService       = uploadService;
 }
        public void TestInitializer()
        {
            _externalLinkDbSet = Substitute.For <IDbSet <ExternalLink> >();

            var uow = Substitute.For <IUnitOfWork2>();

            uow.GetDbSet <ExternalLink>().Returns(_externalLinkDbSet);

            _externalLinkService = new ExternalLinkService(uow);
        }
Esempio n. 3
0
 public ApiExternalLinksController(IExternalLinkService externalLinkService)
 {
     _externalLinkService = externalLinkService;
 }
Esempio n. 4
0
 public ExternalLinkController(IExternalLinkService externalLinkService, IMapper mapper)
 {
     _externalLinkService = externalLinkService;
     _mapper = mapper;
 }