Exemple #1
0
 public ServiceService(
     IContextManager contextManager,
     IUserIdentification userIdentification,
     ITranslationEntity translationManagerToVm,
     ITranslationViewModel translationManagerToEntity,
     ILogger <Services.ChannelService> logger,
     ServiceChannelLogic channelLogic,
     ServiceUtilities utilities,
     ICommonServiceInternal commonService,
     IGeneralDescriptionService generalDescriptionService,
     VmListItemLogic listItemLogic,
     DataUtils dataUtils,
     VmOwnerReferenceLogic ownerReferenceLogic,
     ICacheManager cacheManager,
     IPublishingStatusCache publishingStatusCache,
     IUserOrganizationChecker userOrganizationChecker,
     IValidationManager validationManager,
     IUserOrganizationService userOrganizationService,
     IVersioningManager versioningManager
     ) :
     base(translationManagerToVm, translationManagerToEntity, publishingStatusCache, userOrganizationChecker, contextManager, utilities, commonService, validationManager)
 {
     this.logger                    = logger;
     this.channelLogic              = channelLogic;
     this.userIdentification        = userIdentification;
     this.listItemLogic             = listItemLogic;
     this.dataUtils                 = dataUtils;
     this.ownerReferenceLogic       = ownerReferenceLogic;
     this.generalDescriptionService = generalDescriptionService;
     this.typesCache                = cacheManager.TypesCache;
     this.languageCache             = cacheManager.LanguageCache;
     this.userOrganizationService   = userOrganizationService;
     this.versioningManager         = versioningManager;
 }
Exemple #2
0
        public ChannelServiceTestBase()
        {
            Logger = new Mock <ILogger <ChannelService> >().Object;
            ServiceChannelLogic = new ServiceChannelLogic(new ChannelAttachmentLogic(), new WebPageLogic(), new OpeningHoursLogic(), AddressLogic);
            UrlService          = (new Mock <IUrlService>()).Object;
            ChannelRepoMock     = new Mock <IServiceChannelVersionedRepository>();
            unitOfWorkMockSetup.Setup(uw => uw.CreateRepository <IServiceChannelVersionedRepository>()).Returns(ChannelRepoMock.Object);
            var serviceNameRepoMock = new Mock <IServiceNameRepository>();

            unitOfWorkMockSetup.Setup(uw => uw.CreateRepository <IServiceNameRepository>()).Returns(serviceNameRepoMock.Object);
        }