using System;
public class Program
{
public static void Main()
//the problem with this is this has to run on sequence. Else it blows up
Client client = new Client();
client.Service = new Service();
client.Start();
}
public interface IService
void Serve();
public class Service : IService
public void Serve()
Console.WriteLine("Service Called");
//To Do: Some Stuff
public class Client
private IService _service;
public IService Service
set
//property injection
this._service = value;
public void Start()
Console.WriteLine("Service Started");
this._service.Serve();