/// <returns>A task that represents the asynchronous operation</returns> public async Task <IViewComponentResult> InvokeAsync(int currentCategoryId, int currentProductId) { if (!_blogSettings.Enabled) { return(Content("")); } var model = await _blogModelFactory.PrepareBlogPostTagListModelAsync(); return(View(model)); }
public async Task CanPrepareBlogPostTagListModel() { var model = await _blogModelFactory.PrepareBlogPostTagListModelAsync(); model.Tags.Count.Should().Be(6); }