Exemplo n.º 1
0
        public void LayDanhSachPhong_TestStatusResponse()
        {
            var actionResult = controller.LayDanhSachPhong();
            //Act
            var actual_result   = actionResult as OkNegotiatedContentResult <List <PhongDTO> >;
            var expected_result = data_test.DemSoLuongPhong();

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