예제 #1
0
        private RawVerifyService CreateService(IWebRequester webRequester = null)
        {
            if (webRequester == null)
            {
                webRequester = new FakeWebRequester();
            }

            return new RawVerifyService(this.GetConfiguration(), webRequester);
        }
        private RawPhoneIdService CreateService(IWebRequester webRequester = null)
        {
            if (webRequester == null)
            {
                webRequester = new FakeWebRequester();
            }

            return(new RawPhoneIdService(this.GetConfiguration(), webRequester));
        }
예제 #3
0
        private PhoneIdService CreateService(
            IWebRequester webRequester            = null,
            IPhoneIdResponseParser responseParser = null)
        {
            if (webRequester == null)
            {
                webRequester = new FakeWebRequester();
            }

            if (responseParser == null)
            {
                responseParser = new FakeResponseParser();
            }

            return(new PhoneIdService(
                       this.GetConfiguration(),
                       webRequester,
                       responseParser));
        }
예제 #4
0
        private PhoneIdService CreateService(
                    IWebRequester webRequester = null, 
                    IPhoneIdResponseParser responseParser = null)
        {
            if (webRequester == null)
            {
                webRequester = new FakeWebRequester();
            }

            if (responseParser == null)
            {
                responseParser = new FakeResponseParser();
            }

            return new PhoneIdService(
                        this.GetConfiguration(), 
                        webRequester, 
                        responseParser);
        }