public void SetUp()
        {
            var factory = Substitute.For <IRequestFactory>();

            factory.CreateClient().Returns(Substitute.For <IRestClient>());
            factory.CreateRequest().Returns(Substitute.For <IRestRequest>());

            descendant = new TwitterClientDescendant(factory, Substitute.For <IClientConfiguration>());
        }
Exemple #2
0
        public void SetUp()
        {
            var factory = Substitute.For<IRequestFactory>();
            factory.NewClient().Returns(Substitute.For<IRestClient>());
            factory.NewRequest().Returns(Substitute.For<IRestRequest>());

            var configurationManager = Substitute.For<IConfigurationManager>();
            configurationManager
                .GetConfigSection<OAuth2ConfigurationSection>("oauth2")
                .Returns(new OAuth2ConfigurationSection());

            descendant = new TwitterClientDescendant(factory, Substitute.For<IClientConfiguration>());
        }
Exemple #3
0
        public void SetUp()
        {
            var factory = Substitute.For <IRequestFactory>();

            factory.NewClient().Returns(Substitute.For <IRestClient>());
            factory.NewRequest().Returns(Substitute.For <IRestRequest>());

            var configurationManager = Substitute.For <IConfigurationManager>();

            configurationManager
            .GetConfigSection <OAuth2ConfigurationSection>("oauth2")
            .Returns(new OAuth2ConfigurationSection());

            descendant = new TwitterClientDescendant(factory, Substitute.For <IClientConfiguration>());
        }