public ClientTests() { this._httpClientMoq = new Mock <HttpClient>(); this._jsonSerializer = new Mock <Malaker.PowerAppsTools.Common.Interfaces.JsonSerializer>(); _jsonSerializer.CallBase = true; this._jsonSerializer.Setup(m => m.Serialize(It.IsAny <object>())).Returns(""); this._sut = new AdvisorClient(_httpClientMoq.Object, _jsonSerializer.Object); }
protected virtual void InitializeClient() { _client = DefaultClientFactory.Instance.Create(new ClientSettings() { ClientId = this.ClientId, Certificate = this.Credentials.Certificate, Secret = this.Credentials.Secret, TenantId = this.TenantId, BaseAddress = this.ApiUrl }); }
public InvokeCheckAnalysisCmdletStub(IPowerAppAdvisorClient client) { this._client = client; }
public SendManagedSolutionCmdletStub(IPowerAppAdvisorClient client) { this._client = client; }