예제 #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);