Skip to content

Commit

Permalink
Fix namespace-folder match.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Aug 17, 2023
1 parent 2cb8196 commit 1628af6
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 22 deletions.
1 change: 0 additions & 1 deletion Agent/Services/AgentHubConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Remotely.Shared.Enums;
using Remotely.Shared.Interfaces;
using Remotely.Shared.Models;
using Remotely.Shared.Services;
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand Down
3 changes: 2 additions & 1 deletion Agent/Services/FileLogsManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Logging;
using Remotely.Shared.Services;
using System;
using System.Collections.Generic;
using System.IO;
Expand All @@ -9,7 +10,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace Remotely.Shared.Services;
namespace Remotely.Agent.Services;

public interface IFileLogsManager
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Linux/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Threading.Tasks;
using System.Threading;
using System;
using Remotely.Desktop.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Services;
Expand All @@ -15,6 +14,7 @@
using Immense.RemoteControl.Desktop.UI.Services;
using Avalonia;
using Immense.RemoteControl.Desktop.UI;
using Desktop.Shared.Services;

public class Program
{
Expand Down
6 changes: 3 additions & 3 deletions Desktop.Shared/Services/BrandingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Remotely.Desktop.Shared.Services;
namespace Desktop.Shared.Services;

public class BrandingProvider : IBrandingProvider
{
Expand All @@ -32,8 +32,8 @@ public class BrandingProvider : IBrandingProvider
};

public BrandingProvider(
IAppState appState,
IOrganizationIdProvider orgIdProvider,
IAppState appState,
IOrganizationIdProvider orgIdProvider,
IEmbeddedServerDataSearcher embeddedServerDataSearcher,
ILogger<BrandingProvider> logger)
{
Expand Down
3 changes: 1 addition & 2 deletions Desktop.Shared/Services/OrganizationIdProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

namespace Remotely.Desktop.Shared.Services;
namespace Desktop.Shared.Services;

public interface IOrganizationIdProvider
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Win/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Threading.Tasks;
using System.Threading;
using System;
using Remotely.Desktop.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Services;
Expand All @@ -14,6 +13,7 @@
using Immense.RemoteControl.Desktop.UI.Services;
using Avalonia;
using Immense.RemoteControl.Desktop.UI;
using Desktop.Shared.Services;

public class Program
{
Expand Down
1 change: 0 additions & 1 deletion Tests/Server.Tests/AgentHubTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.Threading.Tasks;
using Remotely.Shared.Interfaces;
using Immense.SimpleMessenger;
using Remotely.Tests;

namespace Remotely.Server.Tests;

Expand Down
1 change: 0 additions & 1 deletion Tests/Server.Tests/CircuitConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using Remotely.Server.Tests.Mocks;
using Remotely.Shared.Extensions;
using Remotely.Shared.Interfaces;
using Remotely.Tests;
using System.Threading.Tasks;

namespace Remotely.Server.Tests;
Expand Down
11 changes: 6 additions & 5 deletions Tests/Server.Tests/DataServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
using Remotely.Server.Services;
using Remotely.Shared.Dtos;
using Remotely.Shared.Entities;
using Remotely.Shared.Enums;
using Remotely.Shared.Models;
using Remotely.Shared.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Remotely.Tests;
namespace Remotely.Server.Tests;

[TestClass]
public class DataServiceTests
Expand Down Expand Up @@ -132,15 +133,15 @@ public async Task GetPendingScriptRuns_GivenMultipleRunsQueued_ReturnsOnlyLatest
Name = "GCI",
Organization = _testData.Org1Admin1.Organization,
OrganizationID = _testData.Org1Id,
Shell = Shared.Enums.ScriptingShell.PSCore
Shell = ScriptingShell.PSCore
};

await _dataService.AddOrUpdateSavedScript(savedScript, _testData.Org1Admin1.Id);

var scriptRun = new ScriptRun()
{
Devices = new() { _testData.Org1Device1 },
InputType = Shared.Enums.ScriptInputType.ScheduledScript,
InputType = ScriptInputType.ScheduledScript,
SavedScriptId = savedScript.Id,
Initiator = _testData.Org1Admin1.UserName,
RunAt = now,
Expand All @@ -166,10 +167,10 @@ public async Task GetPendingScriptRuns_GivenMultipleRunsQueued_ReturnsOnlyLatest
var dto = new ScriptResultDto()
{
DeviceID = _testData.Org1Device1.ID,
InputType = Shared.Enums.ScriptInputType.ScheduledScript,
InputType = ScriptInputType.ScheduledScript,
SavedScriptId = savedScript.Id,
ScriptRunId = scriptRun.Id,
Shell = Shared.Enums.ScriptingShell.PSCore,
Shell = ScriptingShell.PSCore,
ScriptInput = "echo test"
};

Expand Down
2 changes: 1 addition & 1 deletion Tests/Server.Tests/IoCActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Collections.Generic;
using System.Configuration;

namespace Remotely.Tests;
namespace Remotely.Server.Tests;

[TestClass]
public class IoCActivator
Expand Down
8 changes: 4 additions & 4 deletions Tests/Server.Tests/ScriptScheduleDispatcherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Remotely.Tests;
namespace Remotely.Server.Tests;

[TestClass]
public class ScriptScheduleDispatcherTests
Expand Down Expand Up @@ -68,7 +68,7 @@ public async Task Init()
};

var scriptSchedules = new List<ScriptSchedule>()
{
{
_schedule1
};

Expand Down Expand Up @@ -108,9 +108,9 @@ public async Task DispatchPendingScriptRuns_GivenSchedulesDue_CreatesScriptRuns(

_dataService.Verify(x => x.GetScriptSchedulesDue(), Times.Once);
_dataService.Verify(x => x.AddOrUpdateScriptSchedule(_schedule1), Times.Once);
_dataService.Verify(x => x.GetDevices(It.Is<IEnumerable<string>>(x =>
_dataService.Verify(x => x.GetDevices(It.Is<IEnumerable<string>>(x =>
x.Contains(_schedule1.Devices.First().ID))));
_dataService.Verify(x => x.AddScriptRun(It.Is<ScriptRun>(x =>
_dataService.Verify(x => x.AddScriptRun(It.Is<ScriptRun>(x =>
x.ScheduleId == _schedule1.Id &&
x.Devices!.Exists(d => d.ID == _testData.Org1Device1.ID) &&
x.Devices!.Exists(d => d.ID == _testData.Org1Device2.ID))));
Expand Down
2 changes: 1 addition & 1 deletion Tests/Server.Tests/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using System.Net.Http;
using System.Threading.Tasks;

namespace Remotely.Tests;
namespace Remotely.Server.Tests;

public class TestData
{
Expand Down

0 comments on commit 1628af6

Please sign in to comment.