public void Should_be_able_to_get_the_Countof_the_Category() { IQueryFor<NullArgument, IEnumerable<CategoryCountViewModel>> categoryCountViewModel = new CategoryAndCountQuery(); IEnumerable<CategoryCountViewModel> CategoryCount = categoryCountViewModel.Execute(NullArgument.BuildDefault()); CategoryCount.First().Count.Should().Be(4); CategoryCount.First().CategoryName.Should().Be("Mobile"); }
public void Should_be_able_to_Get_the_CategoryViewModel() { IQueryFor<NullArgument, IEnumerable<CategoryCountViewModel>> categoryCountViewModel = new CategoryAndCountQuery(); IEnumerable<CategoryCountViewModel> CategoryCount = categoryCountViewModel.Execute(NullArgument.BuildDefault()); CategoryCount.Count().Should().Be(8); }