C# Class Microsoft.WindowsAzure.MobileServices.Test.LoginTests

Platform-specific Login Tests for the Windows Phone Silverlight 8.1 platform.
Exibir arquivo Open project: Azure/azure-mobile-apps-net-client Class Usage Examples

Public Methods

Method Description
ExecuteTest ( string testName, Func test ) : Task

Utility method that can be used to execute a test. It will capture any exceptions throw during the execution of the test and return a message with details of the exception thrown.

TestRefreshUserAsync ( MobileServiceAuthenticationProvider provider ) : Task

Tests the MobileServiceClient.RefreshUserAsync functionality on the platform.

TestRefreshUserAsync ( MobileServiceAuthenticationProvider provider, bool useSingleSignOn ) : Task

Tests the MobileServiceClient.RefreshUserAsync functionality on the platform.

Private Methods

Method Description
GetGoogleAccessToken ( string mobileServiceUri, string mobileServiceAuthenticationToken ) : Task

Tests the MobileServiceClient.RefreshUserAsync functionality of Google

RevokeGoogleAccessToken ( string googleAccessToken ) : Task
TestAADRefreshUserAsync ( ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of WindowsAzureActiveDirectory

TestAADRefreshUserAsync ( bool useSingleSignOn ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of WindowsAzureActiveDirectory

TestCRUDAsync ( string tableName, bool tableRequiresAuthentication, bool userIsAuthenticated ) : Task
TestFacebookRefreshUserAsync ( ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Facebook

TestFacebookRefreshUserAsync ( bool useSingleSignOn ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Facebook

TestGoogleRefreshUserAsync ( ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Google

TestGoogleRefreshUserAsync ( bool useSingleSignOn ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Google

TestLogoutAsync ( ) : Task
TestMicrosoftAccountRefreshUserAsync ( ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of MicrosoftAccount

TestMicrosoftAccountRefreshUserAsync ( bool useSingleSignOn ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of MicrosoftAccount, with MobileServiceTable CRUD operations

TestTwitterRefreshUserAsync ( ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Twitter

TestTwitterRefreshUserAsync ( bool useSingleSignOn ) : Task

Tests the MobileServiceClient.LoginAsync and MobileServiceClient.RefreshUserAsync functionality of Twitter

ValidateExpectedFailure ( string attemptedAction, string tableName, bool crudShouldWork, bool tableRequiresAuth, MobileServiceInvalidOperationException innerException ) : void

Method Details

ExecuteTest() public static method

Utility method that can be used to execute a test. It will capture any exceptions throw during the execution of the test and return a message with details of the exception thrown.
public static ExecuteTest ( string testName, Func test ) : Task
testName string The name of the test being executed. ///
test Func A test to execute. ///
return Task

TestRefreshUserAsync() public static method

Tests the MobileServiceClient.RefreshUserAsync functionality on the platform.
public static TestRefreshUserAsync ( MobileServiceAuthenticationProvider provider ) : Task
provider MobileServiceAuthenticationProvider /// The provider with which to login. ///
return Task

TestRefreshUserAsync() public static method

Tests the MobileServiceClient.RefreshUserAsync functionality on the platform.
public static TestRefreshUserAsync ( MobileServiceAuthenticationProvider provider, bool useSingleSignOn ) : Task
provider MobileServiceAuthenticationProvider /// The provider with which to login. ///
useSingleSignOn bool /// use single sign-on to login the user. ///
return Task