<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <IsPackable>false</IsPackable>
  </PropertyGroup>

  <ItemGroup>
    <!-- HttpAuditActorAccessorTests construct DefaultHttpContext + an
         IHttpContextAccessor stub to drive the principal-to-actor seam. -->
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="coverlet.collector" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
    <!-- Microsoft.Extensions.* and Microsoft.AspNetCore.Authorization are provided
         by the Microsoft.AspNetCore.App shared framework referenced above (added so
         HttpAuditActorAccessorTests can build DefaultHttpContext), so they are no
         longer listed as PackageReferences here (NU1510). -->
    <PackageReference Include="Microsoft.NET.Test.Sdk" />
    <PackageReference Include="xunit" />
    <PackageReference Include="xunit.runner.visualstudio" />
    <!-- Task 1.2: the LDAP tests construct the shared library service / options directly. -->
    <PackageReference Include="ZB.MOM.WW.Auth.Abstractions" />
    <PackageReference Include="ZB.MOM.WW.Auth.Ldap" />
    <!-- C1: LibraryInboundApiKeyAdmin tests construct the real library Sqlite stores +
         ApiKeyAdminCommands against a temp SQLite DB (mirroring the library's own
         ApiKeyAdminCommands tests). -->
    <PackageReference Include="ZB.MOM.WW.Auth.ApiKeys" />
  </ItemGroup>

  <ItemGroup>
    <Using Include="Xunit" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="../../src/ZB.MOM.WW.ScadaBridge.Security/ZB.MOM.WW.ScadaBridge.Security.csproj" />
    <ProjectReference Include="../../src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.csproj" />
    <ProjectReference Include="../../src/ZB.MOM.WW.ScadaBridge.Commons/ZB.MOM.WW.ScadaBridge.Commons.csproj" />
  </ItemGroup>

</Project>
