I'm using Kibana, ElasticSearch and APM in version 7.5.1.
My project is a C# project with
Elastic.APM in version
1.4.0 installed via nuget.
I want to mock the elastic apm instance when doing unit testsing.
What would be the right approach to mock the Agent and check the outcome (transactions and spans)?
I had a look at https://github.com/elastic/apm-agent-dotnet/blob/master/test/Elastic.Apm.Tests/TransactionSamplingTests.cs, however due to the protection level I cannot use the mock classes
MockConfigSnapshot in its original form.