public async Task GetUserBirthdayTest() { var googleAuthenticator = new AuthenticationGoogle(); await googleAuthenticator.LoginGoogle(_testUsername); var googleApiClient = new GoogleApiClient(googleAuthenticator.GetCurrentCredentials()); var googleCorrelatorBot = new GoogleDataCorrelator(googleApiClient.GetEventsUser(), googleApiClient.GetGmailsUser(), googleApiClient.GetCurrentUser()); var correlation = googleCorrelatorBot.GetUserBirthday(); Assert.IsNotNull(correlation); }
public string StartBotClient(List<GoogleCalendarModel> calenderEvents, List<GoogleGmailModel> mails, GoogleProfileModel profile) { _googleDataCorrelator = new GoogleDataCorrelator(calenderEvents, mails, profile); return EntrySentence(); }