private static IPandaContainer CreateAndRegisterContainerWithCredentials(string baseUrl, string userName, string password) { var container = new PandaContainer(); container.RegisterPandaModules(() => AuthenticateWithCredentials(container, baseUrl, userName, password)); return(container); }
private static IPandaContainer CreateAndRegisterContainerWithOAuth( string baseUrl, string consumerKey, string consumerSecret, string oAuthAccessToken, string oAuthTokenSecret) { var container = new PandaContainer(); container.RegisterPandaModules(() => AuthenticateWithOAuth(container, baseUrl, consumerKey, consumerSecret, oAuthAccessToken, oAuthTokenSecret)); return(container); }