BenMorris / NetArchTest

A fluent API for .Net that can enforce architectural rules in unit tests.
MIT License
1.36k stars 81 forks source link

Help with verifying extension methods on IServiceCollection #141

Open senal opened 3 months ago

senal commented 3 months ago

Hi,

Just want to know whether it's possible to verify any given extension methods are being called on IServiceColletion in the Program.cs file? e.g in the Program.cs

  var builder = WebApplication.CreateBuilder(args);
  builder.Services.AddAppEssentials();

I need to verify the extension method AddAppEssentials() has been added.