Ejemplo n.º 1
0
        public void SimplePagedList_Of_Object_Inherit_From_BasePagedList_Of_Object()
        {
            //Arrange
            var type = typeof(BasePagedList <object>);

            //Act
            var list = new SimplePagedList <object>(new List <object>(), 1, 1, 1);

            //Assert
            Assert.IsAssignableFrom(type, list);
        }
Ejemplo n.º 2
0
        public void UnansweredQuestions()
        {
            //Arrange
            IPagedList <UnansweredQuestionDto> questions = new SimplePagedList <UnansweredQuestionDto>(new List <UnansweredQuestionDto>(), 1, 1, 1);
            var model = UnansweredQuestionsModel();

            //Act
            model.UnansweredQuestions = questions;

            //Assert
            Assert.AreSame(questions, model.UnansweredQuestions);
        }