public void Init() { _subscriberClient = Substitute.For<ISpreedlySubscribers>(); _subscriptionPlansClient = Substitute.For<ISpreedlySubscriptionPlans>(); _paymentsClient = Substitute.For<ISpreedlyInvoices>(); _subscriberHelper = new SubscriberHelper(_subscriberClient, _paymentsClient, _subscriptionPlansClient); }
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); }