I am waching the screencast of Funq but I don't understand something with the following lambda in the testing code :
var container = new Container();
container.Register<IBar>(c => new Bar());
the declaration :
public void Register<TService>(Func<Container, TService> factory) { ... }
In the lambda, the new Bar() acts as the TService and the c as the Container for the Func used in Register method.
During the execution, when is this c delcared ? Is it the container created at the beginning because I do not understand when an instance of a Container is passed to the Register method.