Skip to content

Commit baf9f2e

Browse files
committed
removed old interface namesapce
1 parent 24c4b99 commit baf9f2e

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

src/LogExpert.Core/Classes/Persister/Persister.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
using LogExpert.Core.Classes.JsonConverters;
44
using LogExpert.Core.Config;
5-
using LogExpert.Core.Interface;
65

76
using Newtonsoft.Json;
87

src/LogExpert.Tests/IPC/OneInstanceIpcTests.cs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using LogExpert.Classes;
21
using LogExpert.Core.Classes.IPC;
3-
using LogExpert.Core.Interface;
4-
5-
using Moq;
62

73
using Newtonsoft.Json;
84

@@ -31,14 +27,14 @@ public void SerializeCommand_WhenAllowOnlyOneInstance_UsesNewWindowOrLockedWindo
3127
// through the public API. This test verifies the expected behavior.
3228
// For unit testing, we'd need to make SerializeCommandIntoNonFormattedJSON internal
3329
// or use InternalsVisibleTo attribute.
34-
30+
3531
// For now, we test the IpcMessage structure directly
3632
var message = new IpcMessage
3733
{
3834
Type = allowOnlyOne ? IpcMessageType.NewWindowOrLockedWindow : IpcMessageType.NewWindow,
3935
Payload = Newtonsoft.Json.Linq.JObject.FromObject(new LoadPayload { Files = [.. files] })
4036
};
41-
37+
4238
var json = JsonConvert.SerializeObject(message, Formatting.None);
4339
var deserialized = JsonConvert.DeserializeObject<IpcMessage>(json);
4440

@@ -63,7 +59,7 @@ public void SerializeCommand_WhenMultipleInstancesAllowed_UsesNewWindowType ()
6359
Type = allowOnlyOne ? IpcMessageType.NewWindowOrLockedWindow : IpcMessageType.NewWindow,
6460
Payload = Newtonsoft.Json.Linq.JObject.FromObject(new LoadPayload { Files = [.. files] })
6561
};
66-
62+
6763
var json = JsonConvert.SerializeObject(message, Formatting.None);
6864
var deserialized = JsonConvert.DeserializeObject<IpcMessage>(json);
6965

@@ -78,9 +74,9 @@ public void IpcMessage_SerializesAndDeserializesCorrectly ()
7874
var originalMessage = new IpcMessage
7975
{
8076
Type = IpcMessageType.Load,
81-
Payload = Newtonsoft.Json.Linq.JObject.FromObject(new LoadPayload
82-
{
83-
Files = ["file1.log", "file2.log", "file3.log"]
77+
Payload = Newtonsoft.Json.Linq.JObject.FromObject(new LoadPayload
78+
{
79+
Files = ["file1.log", "file2.log", "file3.log"]
8480
})
8581
};
8682

@@ -91,10 +87,10 @@ public void IpcMessage_SerializesAndDeserializesCorrectly ()
9187
// Assert
9288
Assert.That(deserializedMessage, Is.Not.Null);
9389
Assert.That(deserializedMessage.Type, Is.EqualTo(originalMessage.Type));
94-
90+
9591
var originalPayload = originalMessage.Payload.ToObject<LoadPayload>();
9692
var deserializedPayload = deserializedMessage.Payload.ToObject<LoadPayload>();
97-
93+
9894
Assert.That(deserializedPayload.Files.Count, Is.EqualTo(originalPayload.Files.Count));
9995
for (int i = 0; i < originalPayload.Files.Count; i++)
10096
{

src/LogExpert.Tests/Services/LedIndicatorServiceTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Runtime.Versioning;
22

3-
using LogExpert.UI.Interface.Services;
43
using LogExpert.UI.Services.LedService;
54

65
using NUnit.Framework;

0 commit comments

Comments
 (0)