public void DatPhongChoTungDoan_TestStatusResponse() { var action_result = controller.DatPhongChoTungDoan("546251"); //act var actual_result1 = action_result as OkNegotiatedContentResult <string>; var actual_result2 = action_result as BadRequestErrorMessageResult; var expected_result1 = "ok"; var expected_result2 = actual_result2.Message; //assert try { Assert.AreEqual(expected_result1, actual_result1.Content); } catch (Exception) { Assert.IsNotNull(expected_result2); } }