tests OK
This commit is contained in:
parent
2615b4e86b
commit
3508f0a55d
4 changed files with 11 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ namespace yavscTests.ServerFixtures
|
||||||
_instanceCount++;
|
_instanceCount++;
|
||||||
if (!_isInitialized)
|
if (!_isInitialized)
|
||||||
{
|
{
|
||||||
|
|
||||||
SetupHost().Wait();
|
SetupHost().Wait();
|
||||||
_isInitialized = true;
|
_isInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
@ -127,8 +128,9 @@ namespace yavscTests.ServerFixtures
|
||||||
var yavscOrgPath = Path.GetFullPath(
|
var yavscOrgPath = Path.GetFullPath(
|
||||||
Path.Combine(slnDir,
|
Path.Combine(slnDir,
|
||||||
"src/Yavsc.Org"));
|
"src/Yavsc.Org"));
|
||||||
Environment.CurrentDirectory = yavscOrgPath;
|
|
||||||
|
|
||||||
|
Directory.SetCurrentDirectory(yavscOrgPath);
|
||||||
builder.AddConfiguration("org").AddInMemoryCollection(new Dictionary<string, string?>
|
builder.AddConfiguration("org").AddInMemoryCollection(new Dictionary<string, string?>
|
||||||
{
|
{
|
||||||
[$"ConnectionStrings:{YavscConstants.YavscConnectionStringName}"] = "InMemory"
|
[$"ConnectionStrings:{YavscConstants.YavscConnectionStringName}"] = "InMemory"
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@
|
||||||
"UserName": "fakeuser",
|
"UserName": "fakeuser",
|
||||||
"Password": "f/\\kePassw0rd"
|
"Password": "f/\\kePassw0rd"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"SLNDIR": "/home/paul/Workspace/yavsc"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,4 +46,10 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Target Name="CopyStaticWebAssetsManifest" AfterTargets="Build">
|
||||||
|
<Copy SourceFiles="$(OutDir)Yavsc.Org.staticwebassets.endpoints.json"
|
||||||
|
DestinationFiles="$(OutDir)testhost.staticwebassets.endpoints.json"
|
||||||
|
SkipUnchangedFiles="true"
|
||||||
|
Condition="Exists('$(OutDir)Yavsc.Org.staticwebassets.endpoints.json')" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue