public SmallBlogViewComponent(BlogService blogService, SectionsService sectionsService, PostService postService) { this.blogService = blogService; this.sectionsService = sectionsService; this.postService = postService; }
public QuestionnaireViewModel(SectionsService sectionsService) { _sectionsService = sectionsService; var sections = _sectionsService.GetSections(); Sections = new BindableCollection <Section>(sections); }
public MainScreenSectionsViewComponent(SectionsService sectionsService, BlogService blogService, UserInfoService userInfoService) { this.sectionsService = sectionsService; this.blogService = blogService; this.userInfoService = userInfoService; }
public SearchController(UserInfoService userInfoService, BlogService blogService, SectionsService sectionsService, SearchService searchService, UserBlogService userBlogService) { this.userInfoService = userInfoService; this.blogService = blogService; this.sectionsService = sectionsService; this.searchService = searchService; this.userBlogService = userBlogService; }
public MainPageDataViewComponent(SearchService searchService, FriendsService friendsService, BlockService blockService, ReactionService reactionService, UserBlogService userBlogService, SectionsService sectionsService, BlogService blogService, UserInfoService userInfoService) { this.searchService = searchService; this.friendsService = friendsService; this.blockService = blockService; this.reactionService = reactionService; this.userBlogService = userBlogService; this.sectionsService = sectionsService; this.blogService = blogService; this.userInfoService = userInfoService; this.randomizer = new Random(); }
public async Task AllAsyncShouldReturnCorrectAnswerAndOrderedProperly() { //Arrange var dbOptions = new DbContextOptionsBuilder<UndergroundStationDbContext>() .UseInMemoryDatabase("UndergroundStationTestDb") .Options; var db = new UndergroundStationDbContext(dbOptions); var sectionsService = new SectionsService(db); var firtSection = new ForumSection { Id = 1, Tittle = "b" }; var secondSection = new ForumSection { Id = 2, Tittle = "a" }; db.AddRange(firtSection, secondSection); await db.SaveChangesAsync(); //Act var result = await sectionsService .AllAsync(); //Assert result .Should() .Match (r => r.ElementAt(0).Id == 2 && r.ElementAt(1).Id == 1) .And .HaveCount(2); }
public SectionController(SectionsService sectionsService) { this.sectionsService = sectionsService; }