File: AppServicesWebHostBuilderExtensionsTest.cs
Web Access
Project: src\src\Azure\AzureAppServicesIntegration\test\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj (Microsoft.AspNetCore.AzureAppServicesIntegration.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Extensions.DependencyInjection;
using Moq;
 
namespace Microsoft.AspNetCore.Hosting.Azure.AppServices.Tests;
 
public class AppServicesWebHostBuilderExtensionsTest
{
    [Fact]
    public void UseAzureAppServices_RegisterLogger()
    {
        var mock = new Mock<IWebHostBuilder>();
 
        mock.Object.UseAzureAppServices();
 
        mock.Verify(builder => builder.ConfigureServices(It.IsNotNull<Action<IServiceCollection>>()), Times.Once);
    }
}