GetReceiverConfigAsync() public method

public GetReceiverConfigAsync ( string name, string id ) : Task
name string
id string
return Task
Example #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);
        }
        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);
        }