コード例 #1
0
        private DefaultMicrosoftTeamsLogicAppReplyMessageClient CreateClient(DefaultMicrosoftTeamsLogicAppReplyMessageClientSettings settings = null, HttpClient httpClient = null)
        {
            if (settings == null)
            {
                settings = new DefaultMicrosoftTeamsLogicAppReplyMessageClientSettings()
                {
                    Active      = true,
                    EndpointUrl = "https://loremipsum.com/api/v1/Replymessage"
                };
            }

            if (httpClient == null)
            {
                httpClient = HttpClientExtensions.CreateMockHttpClient(
                    new DefaultMicrosoftTeamsReplyMessageResponse()
                {
                    MessageId = "M123456789"
                }
                    );
            }

            var notifier = new DefaultMicrosoftTeamsLogicAppReplyMessageClient(httpClient, settings);

            return(notifier);
        }
 public DefaultMicrosoftTeamsLogicAppReplyMessageClient(HttpClient httpClient, DefaultMicrosoftTeamsLogicAppReplyMessageClientSettings settings)
 {
     _httpClient = httpClient;
     _settings   = settings;
 }