Posted on October 29, 2019 by Christopher SnayMock any implementation of a generic interface with one declaration. services.AddTransient(typeof(IGenericInterface<>), typeof(GenericClass<>));