You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to create some integration tests using NUnit, using the DeliveryClientBuilder to create the client. But for some reason, it always returns the LinkedItems as objects set to null.
Using DI via our Web API (.Net 5) project, it all works fine and returns the LinkedItems set correctly to the strongly typed objects.
We tried using the DeliveryClientBuilder within the Web API project, but with the same results.
Repro steps
Setup a DeliveryClient without DI, as per the documentation:
Hi @twadevs ,
you need to use .WithTypeProvider(customTypeProvider) or services.AddSingleton<ITypeProvider, CustomTypeProvider>(); (if you're using dependency injection.
Brief bug description
We are trying to create some integration tests using NUnit, using the DeliveryClientBuilder to create the client. But for some reason, it always returns the LinkedItems as objects set to null.
Using DI via our Web API (.Net 5) project, it all works fine and returns the LinkedItems set correctly to the strongly typed objects.
We tried using the DeliveryClientBuilder within the Web API project, but with the same results.
Repro steps
Expected behaviour
LinkedItems should not be set to null.
Test environment
The text was updated successfully, but these errors were encountered: