public void init()
        {
            _factory = new SpreedlyClientFactory(new SpreedlyParameters
            {
                ApiKey = TestConstants.TestApiKey,
                SiteName = TestConstants.TestSiteName
            });

            _subscriptionPlans = _factory.GetSubscriptionPlanClient();
        }
        public void init()
        {
            _factory = new SpreedlyClientFactory(new SpreedlyParameters
                                                     {
                                                         ApiKey = TestConstants.TestApiKey,
                                                         SiteName = TestConstants.TestSiteName
                                                     });
            _subscribers = _factory.GetSubscribersClient();
            _invoices = _factory.GetInvoiceClient();

            var newSubscriber = new Subscriber
                                    {
                                        CustomerId = TestConstants.TestCustomerId,
                                        ScreenName = TestConstants.TestCustomerId,
                                        Email = "*****@*****.**"
                                    };
            _subscribers.CreateSubscriber(newSubscriber);
        }
        public void IntegrationTearDown()
        {
            var factory = new SpreedlyClientFactory(new SpreedlyParameters
            {
                ApiKey = TestConstants.TestApiKey,
                SiteName = TestConstants.TestSiteName
            });

            factory.GetTestClient().DeleteAllSubscribers();
        }