sdk/dotnet/test/Datasync.Common.Test/BaseTest.cs
/// <summary>
/// Get a datasync client that is completely mocked and doesn't require a service
/// </summary>
/// <param name="authProvider">... with the provided authentication provider</param>
/// <returns>A datasync client</returns>
Get a datasync client that is completely mocked and doesn't require a service
Get a datasync client that is completely mocked and doesn ' t require a service
protected DatasyncClient GetMockClient(AuthenticationProvider authProvider = null, IOfflineStore store = null)
        {
            var options = new DatasyncClientOptions
            {
                HttpPipeline = BuildHandlers(authProvider, MockHandler),
                OfflineStore = store
            };
            return authProvider == null ? new DatasyncClient(Endpoint, options) : new DatasyncClient(Endpoint, options);
        }
protected DatasyncClient GetMockClient ( AuthenticationProvider authProvider = null , IOfflineStore store = null ) { var options = new DatasyncClientOptions { HttpPipeline = BuildHandlers ( authProvider , MockHandler ) , OfflineStore = store } ; return authProvider == null ? new DatasyncClient ( Endpoint , options ) : new DatasyncClient ( Endpoint , options ) ; }
Get a datasync client that is completely mocked and doesn't require a service
Get a datasync client that is completely mocked and doesn ' t require a service
A datasync client
A datasync client
authProvider
AuthenticationProvider
with the provided authentication provider
with the provided authentication provider
store
IOfflineStore