static void ConfigureContainer() { _container = new Container(c => { c.For(typeof (IRepository<>)).Use(typeof (ConcreteRepository<>)); c.For<IDatabaseContext>().Use(() => { // Fake data store var context = new DatabaseContext(); // Kinda like adding records to a Color table context.AddItem(new Color("Red")); context.AddItem(new Color("Yellow")); context.AddItem(new Color("Blue")); // Kinda like adding records to a Pickle table context.AddItem(new Pickle("Kosher Dill")); context.AddItem(new Pickle("Sweet")); context.AddItem(new Pickle("Bread and Butter")); return context; }); }); }