public void BuildBlogSource_MockBlogSource_ReturnsNotNullBlogSource()
        {
            // Arrange
            var appSettings = AppSettingTestData.CreateDictionary();
            var service = new AppSettingsConfigService(appSettings);

            // Act
            var blogSource = service.BuildBlogSource((_, __) => new FakeBlogSource());

            // Assert
            Assert.NotNull(blogSource);
        }
        public void BuildBlogSource_NullMockBlogSource_FuncContainsUsernameAndPassword()
        {
            // Arrange
            var appSettings = AppSettingTestData.CreateDictionary();
            var service = new AppSettingsConfigService(appSettings);

            string username = null;
            string password = null;

            // Act
            service.BuildBlogSource<FakeBlogSource>(
                (appSettingUsername, appSettingsPassword) =>
                    {
                        username = appSettingUsername;
                        password = appSettingsPassword;
                        return null;
                    });

            // Assert
            Assert.Equal(AppSettingTestData.AppSettingsTestUsername, username);
            Assert.Equal(AppSettingTestData.AppSettingsTestPassword, password);
        }