Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/src/commit/e33b75d3f1d3ec88865542ba5ae9afba5ed27f25/tests/Recyclarr.TestLibrary/AutoFixture/AutofacSpecimenBuilder.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
recyclarr/tests/Recyclarr.TestLibrary/AutoFixture/AutofacSpecimenBuilder.cs

20 lines
507 B

using System.Reflection;
using Autofac;
using AutoFixture.Kernel;
namespace Recyclarr.TestLibrary.AutoFixture;
public class AutofacSpecimenBuilder(ILifetimeScope container) : ISpecimenBuilder
{
public object Create(object request, ISpecimenContext context)
{
if (request is not ParameterInfo paramInfo)
{
return new NoSpecimen();
}
var instance = container.ResolveOptional(paramInfo.ParameterType);
return instance ?? new NoSpecimen();
}
}