Skip to content

Commit

Permalink
Merge pull request #22 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
update client packages
  • Loading branch information
Ali-YousefiTelori authored Oct 26, 2023
2 parents 554c90d + 08a2caf commit d384657
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EasyMicroservices.Laboratory" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Laboratory" Version="0.0.0.15" />
<PackageReference Include="EasyMicroservices.Tests" Version="0.0.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="7.0.12">
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="7.0.13">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using EasyMicroservices.AuthenticationsMicroservice.VirtualServerForTests.TestResources;
using EasyMicroservices.Laboratory.Constants;
using EasyMicroservices.Laboratory.Engine;
using EasyMicroservices.Laboratory.Engine.Net;
using EasyMicroservices.Laboratory.Engine.Net.Http;
using System;
using System.Collections.Generic;
Expand All @@ -14,18 +15,18 @@ public class AuthenticationVirtualTestManager
static Dictionary<int, ResourceManager> InitializedPorts = new Dictionary<int, ResourceManager>();
public int CurrentPortNumber { get; set; }

public async Task<bool> OnInitialize(int portNumber)
public async Task<bool> OnInitialize(int portNumber, BaseHandler handler = null)
{
CurrentPortNumber = portNumber;
if (InitializedPorts.ContainsKey(portNumber))
return false;
InitializedPorts[portNumber] = new ResourceManager();
HttpHandler httpHandler = new HttpHandler(InitializedPorts[portNumber]);
handler ??= BaseHandler.CreateOSHandler(InitializedPorts[portNumber]);
foreach (var item in AuthenticationResource.GetResources("TestExample"))
{
AppendService(portNumber, item.Key, item.Value);
}
await httpHandler.Start(portNumber);
await handler.Start(portNumber);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.2</Version>
<Version>0.0.0.3</Version>
<Description>authentication virtual server for tests</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>authentication,tests,testtemplate,testtemplates,examples,server,testserver,virtual,virtualserver</PackageTags>
Expand All @@ -26,7 +26,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EasyMicroservices.Laboratory" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Laboratory" Version="0.0.0.15" />
</ItemGroup>

</Project>

0 comments on commit d384657

Please sign in to comment.