Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/blame/commit/0cc182b01d67bb01a6775b20ecc81b2e3d05aacc/NzbDrone.Api.Test/ClientSchemaTests/SchemaBuilderFixture.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
using FluentAssertions ;
using NUnit.Framework ;
using NzbDrone.Api.ClientSchema ;
using NzbDrone.Core.Annotations ;
using NzbDrone.Test.Common ;
namespace NzbDrone.Api.Test.ClientSchemaTests
{
[TestFixture]
public class SchemaBuilderFixture : TestBase
{
[Test]
public void should_return_field_for_every_property ( )
{
var schema = SchemaBuilder . GenerateSchema ( new TestModel ( ) ) ;
schema . Should ( ) . HaveCount ( 2 ) ;
}
[Test]
public void schema_should_have_proper_fields ( )
{
var model = new TestModel
{
FirstName = "Bob" ,
LastName = "Poop"
} ;
var schema = SchemaBuilder . GenerateSchema ( model ) ;
schema . Should ( ) . Contain ( c = > c . Order = = 1 & & c . Name = = "LastName" & & c . Label = = "Last Name" & & c . HelpText = = "Your Last Name" & & ( string ) c . Value = = "Poop" ) ;
schema . Should ( ) . Contain ( c = > c . Order = = 0 & & c . Name = = "FirstName" & & c . Label = = "First Name" & & c . HelpText = = "Your First Name" & & ( string ) c . Value = = "Bob" ) ;
}
}
public class TestModel
{
[FieldDefinition(0, Label = "First Name", HelpText = "Your First Name")]
public string FirstName { get ; set ; }
[FieldDefinition(1, Label = "Last Name", HelpText = "Your Last Name")]
public string LastName { get ; set ; }
public string Other { get ; set ; }
}
}