mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 20:07:20 +00:00
Generated the JSON contracts of the stored data at compile time (#1148)
This commit is contained in:
1 parent
fc7399e81b
commit
e954881fda
75 files changed
+5437
-298
No files matched your search
+10
-1
@@ -12,7 +12,16 @@ namespace AIStudio.Tests;
|
||||
public sealed class TestHost
|
||||
{
|
||||
[OneTimeSetUp]
|
||||
public void PrepareStaticApplicationState()
|
||||
public void PrepareStaticApplicationState() => PrepareStaticState();
|
||||
|
||||
/// <summary>
|
||||
/// Fills the static state of the app which the tests need.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// NUnit builds the cases of a TestCaseSource while it discovers the tests, before this fixture runs.
|
||||
/// A source which touches a type of the app with a static logger calls this first.
|
||||
/// </remarks>
|
||||
public static void PrepareStaticState()
|
||||
{
|
||||
//
|
||||
// A number of types in the app hold a static logger field that is initialized from
|
||||
|
||||
Reference in new issue
Block a user