using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var foo = new ClassWithDependency();
foo.DoSomething();
var bar = new InjectedDependency();
foo.Dependency = bar; ...
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var dep = new DefaultDependency();
var foo = new ClassWithDependency(dep);
foo.DoSomething();
var bar = new Injected...