Пример #1
0
        public void ExecuteWithInterface(IRemoteHttpInterface remoteHttpInterface, Action action)
        {
            var oldInstance = Instance;

            try
            {
                action();
            }
            finally
            {
                Instance = oldInstance;
            }
        }
Пример #2
0
 static RemoteHttpInterface()
 {
     Instance = new Impl();
 }
Пример #3
0
 public RecordingHttpInterface(IRemoteHttpInterface innerInterface)
 {
     InnerInterface = innerInterface;
 }