private static ManageContentPageService SetupManageContentPageService( ContentDbContext contentDbContext, IPersistenceHelper <ContentDbContext> contentPersistenceHelper = null, IContentService contentService = null, IMapper mapper = null, IReleaseFileService releaseFileService = null, IUserService userService = null) { return(new ManageContentPageService( mapper ?? MapperUtils.AdminMapper(), releaseFileService ?? new Mock <IReleaseFileService>().Object, contentService ?? new Mock <IContentService>().Object, contentPersistenceHelper ?? new PersistenceHelper <ContentDbContext>(contentDbContext), userService ?? MockUtils.AlwaysTrueUserService().Object )); }