当前位置: 首页>>代码示例>>C#>>正文


C# IPostRepository类代码示例

本文整理汇总了C#中IPostRepository的典型用法代码示例。如果您正苦于以下问题:C# IPostRepository类的具体用法?C# IPostRepository怎么用?C# IPostRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IPostRepository类属于命名空间,在下文中一共展示了IPostRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PostsController

        public PostsController(
			IUnitOfWork unitOfWork,
			IPostRepository postRepository)
        {
            _unitOfWork = unitOfWork;
            _postRepository = postRepository;
        }
开发者ID:G-Rad,项目名称:nzblog,代码行数:7,代码来源:PostsController.cs

示例2: SetUp

 public void SetUp()
 {
     blogRP = MockRepository.GenerateMock<IBlogRepository>();
     postRP = MockRepository.GenerateMock<IPostRepository>();
     userRP = MockRepository.GenerateMock<IUserRepository>();
     friendlyUrlGen = MockRepository.GenerateMock<IFriendlyUrlGenerator>();
 }
开发者ID:DogaOztuzun,项目名称:BlogSharp,代码行数:7,代码来源:DefaultStartupInstallerTests.cs

示例3: PostService

 public PostService(ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository)
 {
     this._postRepository = postRepository;
     this._topicRepository = topicRepository;
     this._roleService = roleService;
     this._settingsService = settingsService;
 }
开发者ID:h2h,项目名称:CandyBBS,代码行数:7,代码来源:PostService.cs

示例4: PostService

        public PostService(IPostRepository repository)
        {
            if (repository == null)
                throw new ArgumentNullException("repository cannot be null");

            postRepository = repository;
        }
开发者ID:Nodios,项目名称:Games-Store,代码行数:7,代码来源:PostService.cs

示例5: CommentService

        public CommentService(IUnitOfWork unitOfWork, ICommentRepository commentRepository, IPostRepository post)
        {
            this.commentRepository = commentRepository;
            this.postRepository = post;
            this.unitOfWork = unitOfWork;

        }
开发者ID:Dharshz,项目名称:Tales-Blog,代码行数:7,代码来源:CommentService.cs

示例6: CommentServices

 public CommentServices(ICommentRepository commentRepository, IPostRepository postRepository, UserServices userServices, AppConfiguration config)
 {
     this.commentRepository = commentRepository;
     this.config = config;
     this.userServices = userServices;
     this.postRepository = postRepository;
 }
开发者ID:madaboutcode,项目名称:Chronicles,代码行数:7,代码来源:CommentServices.cs

示例7: ForumIdentityService

 public ForumIdentityService(IForumRepository forumRepository, IDiscussionRepository discussionRepository,
     IPostRepository postRepository)
 {
     this._forumRepository = forumRepository;
     this._discussionRepository = discussionRepository;
     this._postRepository = postRepository;
 }
开发者ID:ZhangColin,项目名称:IDDD_Samples_by_Colin,代码行数:7,代码来源:ForumIdentityService.cs

示例8: PostApplicationService

 public PostApplicationService(IPostRepository postRepository, IForumRepository forumRepository,
     ICollaboratorService collaboratorService)
 {
     this._postRepository = postRepository;
     this._forumRepository = forumRepository;
     this._collaboratorService = collaboratorService;
 }
开发者ID:ZhangColin,项目名称:IDDD_Samples_by_Colin,代码行数:7,代码来源:PostApplicationService.cs

示例9: HomeController

 public HomeController(ICalendarRepository repoCalendar, IPostRepository repoNewsItem,
     ILeaderRepository repoLeader)
 {
     _repoCalendar = repoCalendar;
     _repoNewsItem = repoNewsItem;
     _repoLeader = repoLeader;
 }
开发者ID:jordygouwy,项目名称:scoutssintrembert,代码行数:7,代码来源:HomeController.cs

示例10: MembershipService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="membershipRepository"> </param>
 /// <param name="settingsRepository"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postRepository"></param>
 /// <param name="pollVoteRepository"></param>
 /// <param name="pollAnswerRepository"></param>
 /// <param name="pollRepository"></param>
 /// <param name="topicRepository"></param>
 /// <param name="favouriteRepository"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMembershipRepository membershipRepository, ISettingsRepository settingsRepository,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostRepository postRepository, IPollVoteRepository pollVoteRepository, IPollAnswerRepository pollAnswerRepository,
     IPollRepository pollRepository, ITopicRepository topicRepository, IFavouriteRepository favouriteRepository,
     ICategoryService categoryService)
 {
     _membershipRepository = membershipRepository;
     _settingsRepository = settingsRepository;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postRepository = postRepository;
     _pollVoteRepository = pollVoteRepository;
     _pollAnswerRepository = pollAnswerRepository;
     _pollRepository = pollRepository;
     _topicRepository = topicRepository;
     _favouriteRepository = favouriteRepository;
     _categoryService = categoryService;
 }
开发者ID:petemidge,项目名称:mvcforum,代码行数:53,代码来源:MembershipService.cs

示例11: HomeController

 public HomeController(IPostRepository postRepository, 
                       IEmailer messagingService,
                       IViewMapper viewMapper)
     : base(postRepository, viewMapper)
 {
     _viewMapper = viewMapper;
     MessagingService = messagingService;
 }
开发者ID:kamaelyoung,项目名称:My-MVC-Blog,代码行数:8,代码来源:HomeController.cs

示例12: HomeController

        public HomeController(IPostRepository postRepository)
        {
            _posts = postRepository;

            _userRepository = new UserRepository();
            _roleRepository = new RoleRepository();
            _users = new UserService(ModelState, _userRepository, _roleRepository);
        }
开发者ID:eLBirador,项目名称:_JLL,代码行数:8,代码来源:HomeController.cs

示例13: PostService

 public PostService(IPostRepository postRepository,
     ICommentRepository commentRepository,
     ICategoryRepository categoryRepository)
 {
     this.postRepository = postRepository;
     this.commentRepository = commentRepository;
     this.categoryRepository = categoryRepository;
 }
开发者ID:jglozano,项目名称:presentations,代码行数:8,代码来源:PostService.cs

示例14: HomeController

        public HomeController(IDiscussionRepository<Discussion> discussionRepository,
            IPostRepository<Post> postRepository )
        {
            _discussionRepository = discussionRepository;
            _postRepository = postRepository;

            Mapper.AddProfile<HomeMappingProfile>();
        }
开发者ID:Ragabon,项目名称:GadaInternational,代码行数:8,代码来源:HomeController.cs

示例15: SetUp

 public void SetUp()
 {
     TestData.Init();
     _repository = MockRepository.GenerateStub<IPostRepository>();
     _service = new SyndicationService(_repository);
     _repository.Stub(m => m.FindAll()).Return(new[] {TestData.PublishedPost});
     _feed = _service.GetPostsAsSyndicationFeed(new Uri("http://test.com/testrss"));
 }
开发者ID:lg31415,项目名称:Graphite,代码行数:8,代码来源:SyndicationServiceTests.cs


注:本文中的IPostRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。