public void WebApiMethodResponseMessage() { var devOpsController = new DevOpsController(logger); var actionResult = devOpsController.Post(fakeModel); //Assert Assert.AreEqual($"Hello { fakeModel.to } your message will be send", actionResult.message); }
public void WebApiMethodResponseType() { var devOpsController = new DevOpsController(logger); var actionResult = devOpsController.Post(fakeModel); //Assert Assert.IsAssignableFrom <ResponseModel>(actionResult); }