GetReceiverConfigAsync() публичный Метод

public GetReceiverConfigAsync ( string name, string id ) : Task
name string
id string
Результат Task
Пример #1
0
        public async Task GetReceiverConfigAsync_Returns_ExpectedValue(IDictionary <string, string> input, string receiver, string id, string expected)
        {
            // Arrange
            SettingsDictionary    settings = GetSettings(input);
            WebHookReceiverConfig config   = new WebHookReceiverConfig(settings, _logger);

            // Act
            string actual = await config.GetReceiverConfigAsync(receiver, id);

            // Assert
            Assert.Equal(expected, actual);
        }
Пример #2
0
        public async Task GetReceiverConfigAsync_Returns_ExpectedValue(IDictionary<string, string> input, string receiver, string id, string expected)
        {
            // Arrange
            SettingsDictionary settings = GetSettings(input);
            WebHookReceiverConfig config = new WebHookReceiverConfig(settings, _logger);

            // Act
            string actual = await config.GetReceiverConfigAsync(receiver, id);

            // Assert
            Assert.Equal(expected, actual);
        }