Exemplo n.º 1
0
        public void SoSanhThongKeTheoThang_TestStatusResponse()
        {
            var    data          = data_test.SoSanhThongKeTheoThang(9, 2020);
            string date          = "{\"thang\":\"9\",\"nam\":\"2020\"}";
            var    action_result = controller.SoSanhSoSanhThongKeTheoThang(date);
            //act
            var actual_result    = action_result as OkNegotiatedContentResult <SoSanhThongKeDTO>;
            var expected_result1 = data.TienDichVu;
            var expected_result2 = data.TienThuePhong;

            //assert
            Assert.AreEqual(expected_result1, actual_result.Content.TienDichVu);
            Assert.AreEqual(expected_result2, actual_result.Content.TienThuePhong);
        }