Answers for "ihttpactionresult to object c#"

C#
0

ihttpactionresult to object c#

[TestMethod]
public void TestGet()
{
    IHttpActionResult actionResult = controller.Get();
    var contentResult = actionResult as OkNegotiatedContentResult<string>;
    Assert.AreEqual("", contentResult.Content);
}
Posted by: Guest on March-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language