Ejemplo n.º 1
0
        public void FormController_Posting_ReturnsTheResultOfTheCallToGetFormPostings()
        {
            var textPage      = new TextPage();
            var postingsModel = new PostingsModel(PagedList <FormPosting> .Empty, 1);

            A.CallTo(() => _formAdminService.GetFormPostings(textPage, 1, null)).Returns(postingsModel);
            _formController.Postings(textPage, 1, null).As <PartialViewResult>().Model.Should().Be(postingsModel);
        }
Ejemplo n.º 2
0
 public void FormController_Posting_ReturnsTheResultOfTheCallToGetFormPostings()
 {
     var textPage = new TextPage();
     var postingsModel = new PostingsModel(PagedList<FormPosting>.Empty, 1);
     A.CallTo(() => _formAdminService.GetFormPostings(textPage, 1, null)).Returns(postingsModel);
     _formController.Postings(textPage, 1, null).As<PartialViewResult>().Model.Should().Be(postingsModel);
 }