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); }
public ApiExternalLinksController(IExternalLinkService externalLinkService) { _externalLinkService = externalLinkService; }
public ExternalLinkController(IExternalLinkService externalLinkService, IMapper mapper) { _externalLinkService = externalLinkService; _mapper = mapper; }