示例#1
0
        public void JsonResponse_SetThenGet_ShouldBeSame()
        {
            var page = new JsonPagination
            {
                TotalPages       = 4,
                CurrentPageIndex = 1,
                Count            = 10,
            };

            var value = new { Id = "string" };

            var response = new JsonResponse
            {
                Success    = true,
                Pagination = page,
                Value      = value
            };

            Assert.True(response.Success);
        }
示例#2
0
        public void JsonPagination_Default()
        {
            var page = new JsonPagination();

            Assert.Equal(default, page.Count);