Fix Anthropic unit test mocks for SDK 12.20.0 interface changes

Add missing interface members: IAnthropicClient.WebhookKey,
IBetaService.MemoryStores, IBetaService.Webhooks, IBetaService.UserProfiles

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Giles Odigwe
2026-05-08 14:47:49 -07:00
Unverified
parent 5ec3bcf390
commit 3c8fdb6f49
2 changed files with 10 additions and 0 deletions
@@ -451,6 +451,8 @@ public sealed class AnthropicBetaServiceExtensionsTests
public IBetaService Beta => this.BetaService;
public string? WebhookKey { get => throw new NotImplementedException(); init => throw new NotImplementedException(); }
public IBetaService BetaService { get; }
IMessageService IAnthropicClient.Messages => new Mock<IMessageService>().Object;
@@ -491,6 +493,12 @@ public sealed class AnthropicBetaServiceExtensionsTests
public global::Anthropic.Services.Beta.IVaultService Vaults => throw new NotImplementedException();
public global::Anthropic.Services.Beta.IMemoryStoreService MemoryStores => throw new NotImplementedException();
public global::Anthropic.Services.Beta.IWebhookService Webhooks => throw new NotImplementedException();
public global::Anthropic.Services.Beta.IUserProfileService UserProfiles => throw new NotImplementedException();
public IBetaService WithOptions(Func<ClientOptions, ClientOptions> modifier)
{
throw new NotImplementedException();
@@ -81,6 +81,8 @@ public sealed class AnthropicClientExtensionsTests
public IBetaService Beta => throw new NotImplementedException();
public string? WebhookKey { get => throw new NotImplementedException(); init => throw new NotImplementedException(); }
public IAnthropicClient WithOptions(Func<ClientOptions, ClientOptions> modifier)
{
throw new NotImplementedException();