public void Then_If_Total_Is_Zero_Items_Returned_Then_Null_Returned(CmsContent source, MenuPageModel.MenuPageContent menuContent, BannerPageModel bannerContent) { //Arrange source.Total = 0; //Act var actual = new LandingPageModel().Build(source, menuContent, bannerContent); //Assert actual.Should().BeNull(); }
public void Then_If_No_Items_Returned_Then_Null_Returned(MenuPageModel.MenuPageContent menuContent, BannerPageModel bannerContent) { //Arrange var source = new CmsContent { Items = new List <Item>(), Total = 1 }; //Act var actual = new LandingPageModel().Build(source, menuContent, bannerContent); //Assert actual.Should().BeNull(); }