public Foo GetFooFromStorage(int id, IApplicationDatabase storage) { //notice here we don't need any separate code depending on the //concrete type of database return(storage.GetFoo(id)); }