feat: implement GetModelAsync method

This commit is contained in:
Stevan Freeborn
2025-01-05 21:36:34 -06:00
parent 8e0443a6bb
commit 8bbd4bb7c8
4 changed files with 137 additions and 3 deletions
@@ -58,4 +58,10 @@ public static class MockHttpMessageHandlerExtensions
return mockHttpMessageHandler
.SetupBaseRequest(HttpMethod.Get, ModelsEndpoint);
}
public static MockedRequest WhenGetModelRequest(this MockHttpMessageHandler mockHttpMessageHandler, string modelId)
{
return mockHttpMessageHandler
.SetupBaseRequest(HttpMethod.Get, $"{ModelsEndpoint}/{modelId}");
}
}