Skip to content

Commit

Permalink
extensions package for a named client
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasjurasek committed Jan 19, 2021
1 parent 67bdb50 commit e3597f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ public void AddDeliveryNamedClient_WithNamedTypeProvider_GetNamedClient()

var factory = sp.GetRequiredService<IDeliveryClientFactory>();
var client = factory.Get("named");

client.Should().NotBeNull();

var typeProviderType = ((DeliveryClient)client).TypeProvider.GetType();

typeProviderType.Should().Be<FakeTypeProvider>();
}

private class FakeTypeProvider : ITypeProvider
Expand Down
2 changes: 1 addition & 1 deletion Kentico.Kontent.Delivery/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[assembly: ComVisible(false)]
[assembly: Guid("103c7376-d90c-4207-9933-c9e55a16d902")]
[assembly: InternalsVisibleTo("Kentico.Kontent.Delivery.Extensions.Autofac.DependencyInjection.Tests")]
[assembly: InternalsVisibleTo("Kentico.Kontent.Delivery.Extensions.DependencyInjection.Tests")]
[assembly: InternalsVisibleTo("Kentico.Kontent.Delivery.Tests")]
[assembly: InternalsVisibleTo("Kentico.Kontent.Delivery.Caching.Tests")]
[assembly: InternalsVisibleTo("Kentico.Kontent.Delivery.Rx.Tests")]

0 comments on commit e3597f1

Please sign in to comment.