public void SomeOperation()
    {
        IDependency dependency =
            ServiceLocator.GetInstance <IDependency>();

        dependency.Execute();
    }
 public void DoTheThing()
 {
     _dependency.Execute();
 }