/// <summary>Initializes a new instance of the <see cref="GoogleCalendarConnector"/> class.</summary> public GoogleCalendarConnector(GoogleServiceAccountCredential accountCredential) : this(new Lazy <CalendarService>( () => new CalendarService( InitByServiceAccount( accountCredential.ApplicationName, accountCredential.GetServiceAccountStream(), Scopes)))) { }
/// <summary>Initializes a new instance of the <see cref="HangoutsChatConnector"/> class.</summary> public HangoutsChatConnector(GoogleServiceAccountCredential accountCredential) : this(new Lazy <HangoutsChatService>( () => new HangoutsChatService( InitByServiceAccount( accountCredential.ApplicationName, accountCredential.GetServiceAccountStream(), Scopes)))) { }
public void TestInitialize() { _options = new GoogleCloudOptions(null, "ABC", null, "QZ/XY"); _storageConnector = Substitute.For <IBlobStorageConnector>(); _accountCredential = new GoogleServiceAccountCredential(_options, _storageConnector); }