mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/JiboExperiments.git
synced 2026-06-16 14:36:21 +00:00
refactors
This commit is contained in:
@@ -560,4 +560,4 @@ public sealed class LegacyMimCatalogImporterTests
|
||||
|
||||
return rootDirectory;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,12 +156,12 @@ public sealed class PersistenceStoreTests
|
||||
try
|
||||
{
|
||||
File.WriteAllText(persistencePath, """
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 7,
|
||||
"Loops": []
|
||||
}
|
||||
""");
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 7,
|
||||
"Loops": []
|
||||
}
|
||||
""");
|
||||
|
||||
var store = new InMemoryCloudStateStore(persistencePath);
|
||||
|
||||
@@ -189,4 +189,4 @@ public sealed class PersistenceStoreTests
|
||||
Saves.Add(snapshot);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -497,4 +497,4 @@ public sealed class ProviderCachingTests
|
||||
return Task.FromResult(responseFactory(request));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,13 +88,13 @@ public sealed class JiboCloudProtocolServiceTests
|
||||
try
|
||||
{
|
||||
await File.WriteAllTextAsync(persistencePath, """
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 0,
|
||||
"Loops": [],
|
||||
"Holidays": []
|
||||
}
|
||||
""");
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 0,
|
||||
"Loops": [],
|
||||
"Holidays": []
|
||||
}
|
||||
""");
|
||||
|
||||
var service = new JiboCloudProtocolService(new InMemoryCloudStateStore(persistencePath));
|
||||
var result = await service.DispatchAsync(new ProtocolEnvelope
|
||||
@@ -124,27 +124,27 @@ public sealed class JiboCloudProtocolServiceTests
|
||||
try
|
||||
{
|
||||
await File.WriteAllTextAsync(persistencePath, """
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 0,
|
||||
"Loops": [],
|
||||
"Holidays": [
|
||||
{
|
||||
"Id": "birthday-1",
|
||||
"EventId": "birthday-1",
|
||||
"Name": "Jake's Birthday",
|
||||
"Category": "birthday",
|
||||
"LoopId": "loop-123",
|
||||
"MemberId": "person-123",
|
||||
"IsEnabled": true,
|
||||
"Date": "2026-05-19",
|
||||
"Source": "manual",
|
||||
"CountryCode": "US",
|
||||
"Created": "2026-05-19T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
{
|
||||
"SchemaVersion": "1",
|
||||
"Revision": 0,
|
||||
"Loops": [],
|
||||
"Holidays": [
|
||||
{
|
||||
"Id": "birthday-1",
|
||||
"EventId": "birthday-1",
|
||||
"Name": "Jake's Birthday",
|
||||
"Category": "birthday",
|
||||
"LoopId": "loop-123",
|
||||
"MemberId": "person-123",
|
||||
"IsEnabled": true,
|
||||
"Date": "2026-05-19",
|
||||
"Source": "manual",
|
||||
"CountryCode": "US",
|
||||
"Created": "2026-05-19T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
var service = new JiboCloudProtocolService(new InMemoryCloudStateStore(persistencePath));
|
||||
var result = await service.DispatchAsync(new ProtocolEnvelope
|
||||
@@ -468,4 +468,4 @@ public sealed class JiboCloudProtocolServiceTests
|
||||
Assert.Contains(people,
|
||||
person => string.Equals(person.LoopId, store.GetLoops()[0].LoopId, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4289,5 +4289,4 @@ public sealed class JiboInteractionServiceTests
|
||||
return Task.FromResult(Snapshot);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5212,4 +5212,4 @@ public sealed class JiboWebSocketServiceTests
|
||||
return items[^1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -275,4 +275,4 @@ public sealed class LocalWhisperCppBufferedAudioSttStrategyTests
|
||||
return Task.FromResult(new ExternalProcessResult(0, string.Empty, string.Empty));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user