I'm passing an interface to a controller action
public IActionResult PrepareTransfer(IInstrument instrument) {
In my DI container I have
services.AddTransient<IInstrument, Instrument>();
Right now both IInstrument and Instrument are just empty, so the default constructor on Instrument should be available
public class Instrument : IInstrument{}
public interface IInstrument{}
When I run the app I get the following error:
ArgumentException: Type 'G3.Instruments.IInstrument' does not have a default constructor Parameter name: type