Пример #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);
        }
Пример #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);
 }