TNG / ArchUnitNET

A C# architecture test library to specify and assert architecture rules in C# for automated testing.
Apache License 2.0
826 stars 55 forks source link

Help with verifying extension methods on IServiceCollection #268

Open senal opened 1 month ago

senal commented 1 month 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.