コード例 #1
0
ファイル: ClientTests.cs プロジェクト: malaker/PowerAppsTools
 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);
 }
コード例 #2
0
 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
     });
 }
コード例 #3
0
 public InvokeCheckAnalysisCmdletStub(IPowerAppAdvisorClient client)
 {
     this._client = client;
 }
コード例 #4
0
 public SendManagedSolutionCmdletStub(IPowerAppAdvisorClient client)
 {
     this._client = client;
 }