public QuickBooksOnlineService(QuickBooksOnlineAuthenticatedUserCredentials quickBooksAuthenticatedUserCredentials, QuickBooksOnlineNonAuthenticatedUserCredentials quickBooksNonAuthenticatedUserCredentials) { this._restProfile = new RestProfile() { AppToken = quickBooksNonAuthenticatedUserCredentials.AppToken, DataSource = quickBooksAuthenticatedUserCredentials.DataSource, OAuthAccessToken = quickBooksAuthenticatedUserCredentials.OAuthAccessToken, OAuthAccessTokenSecret = quickBooksAuthenticatedUserCredentials.OAuthAccessTokenSecret, RealmId = quickBooksAuthenticatedUserCredentials.RealmId, }; this._consumerProfile = new ConsumerProfile() { ConsumerKey = quickBooksNonAuthenticatedUserCredentials.ConsumerKey, ConsumerSecret = quickBooksNonAuthenticatedUserCredentials.ConsumerSecret, }; this._quickBooksOnlineServiceSdk = new QuickBooksOnlineServiceSdk(this._restProfile, this._consumerProfile); }
public void TestSetup() { this._consumerProfile = this._testDataReader.ConsumerProfile; this._restProfile = this._testDataReader.RestProfile; this._quickBooksOnlineServiceSdk = new QuickBooksOnlineServiceSdk(this._restProfile, this._consumerProfile); }