private void CreateRetryProxyWithRetriesCount(int retryCount)
        {
            this.retriesCount = retryCount;

            this.proxy = new TestRetryEnabledDisposableObjectRealProxy <IFakeService>(
                this.mock.Object, new SimpleRetryPolicyFunction(this.retriesCount));
        }
        private void CreateRetryProxyWithNoRetryPolicy()
        {
            this.retriesCount = RetryNone;

            this.proxy = new TestRetryEnabledDisposableObjectRealProxy <IFakeService>(
                this.mock.Object, null);
        }