示例#1
0
        public void LayPhong_TestStatusResponse()
        {
            var phong        = data_test.LayThongTinPhong();
            var actionResult = controller.LayPhong(phong.ID);
            //Act
            var actual_result   = actionResult as OkNegotiatedContentResult <PhongDTO>;
            var expected_result = phong.SoPhong;

            //Assert

            Assert.IsNotNull(actionResult);
            Assert.AreEqual(expected_result, actual_result.Content.SoPhong);
        }