public UsageOfService() { ServiceLocatorPattern.Register <IPlaybackService>(playbackService); }
public void Play() { Console.WriteLine("Requesting playback for {0}", _AudioFile.Title); playBackService = ServiceLocatorPattern.GetService <IPlaybackService>(); }