Esempio n. 1
0
        public void LayDanhSachDichVu_TestStatusResponse()
        {
            var action_result = controller.LayDanhSachDichVu();
            //act
            var actual_result = action_result as OkNegotiatedContentResult <List <DichVuDTO> >;
            var count         = data_test.SoLuongDichVu();

            //assert
            Assert.AreEqual(count, actual_result.Content.Count);
        }
Esempio n. 2
0
        public void LayDanhSachDichVu()
        {
            var action_result = controller.LayDanhSachDichVu();
            //result
            var actual_result   = action_result as OkNegotiatedContentResult <List <DichVuDTO> >;
            var expected_result = data_test.SoLuongDichVu();

            //assert
            Assert.AreEqual(expected_result, actual_result.Content.Count);
        }