Access ChangeFeedProcessorBuilder from Unit Test Project #3482
Unanswered
ranjeetkpGit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to create object of ChangeFeedProcessorBuilder to unit test changefeed processor but can not initialize it due to protection level
var builder = new ChangeFeedProcessorBuilder(Constants.Cosmos.ProcessorName,null,null,null);
is inaccessible due to protection level
[assembly: InternalsVisibleTo("Microsoft.Azure.Cosmos.Tests" + AssemblyKeys.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.Cosmos.Tests" + AssemblyKeys.TestPublicKey)]
https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/src/ChangeFeedProcessor/ChangeFeedProcessorBuilder.cs
https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/ChangeFeedProcessorBuilderTests.cs
I want to access it using Microsoft.Azure.Cosmos package in my custom Unit Test Project (Visual Studio 2019 and .Net core 3.1)
I can name it Microsoft.Azure.Cosmos.Tests too if required.
Beta Was this translation helpful? Give feedback.
All reactions