Exemplo n.º 1
0
        public ISessionServiceProvider CreateSessionServiceProvider()
        {
            Configuration config = _config.GetProviderConfiguration(ProviderType.Session);
            IRestClient   client = new JSONClient(config.BaseUrl, config.Authenticator);

            client.PreAuthenticate = true;
            var provider = new SessionServiceProvider(client, MemoryCache.Default);

            return(provider);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     mockedClient = new Mock <IRestClient>();
     provider     = new SessionServiceProvider(mockedClient.Object, null);
 }