For self-sustaining types, such as non-abstract classes, an instance of the class is returned by default. The goal is to simplify the use of the most common use case when a class decision is an object under testing and all dependencies are defined as interfaces.
, . , , .
, , .
,
kernel.Bind<Foo>().ToMock().InSingletonScope();
var mock = kernel.GetMock<Foo>()