public TContainer CreateContainer() { if (_modules.ContainsValue(null)) { throw new InvalidOperationException( "Not all modules have been defined. Please ensure all modules have been defined " + "before creating the container."); } return(_moduleLoader.LoadModules(_modules.Values)); }