Skip to content

Commit

Permalink
Rename: namespaces to generic format (#19)
Browse files Browse the repository at this point in the history
* rename: namespace to new format

* refactor: to correct the namespace to right format
  • Loading branch information
Romazes authored Mar 1, 2024
1 parent ddc3616 commit 3a93119
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.TemplateBrokerage.sln

- name: Run Tests
run: dotnet test ./QuantConnect.TemplateBrokerage.Tests/bin/Release/QuantConnect.TemplateBrokerage.Tests.dll
run: dotnet test ./QuantConnect.TemplateBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Template.Tests.dll
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<Copyright>Copyright © 2021</Copyright>
<TestProjectType>UnitTest</TestProjectType>
<OutputPath>bin\$(Configuration)\</OutputPath>
<Product>QuantConnect.TemplateBrokerage.Tests</Product>
<AssemblyName>QuantConnect.TemplateBrokerage.Tests</AssemblyName>
<RootNamespace>QuantConnect.TemplateBrokerage.Tests</RootNamespace>
<AssemblyTitle>QuantConnect.TemplateBrokerage.Tests</AssemblyTitle>
<Product>QuantConnect.Brokerages.Template.Tests</Product>
<AssemblyName>QuantConnect.Brokerages.Template.Tests</AssemblyName>
<RootNamespace>QuantConnect.Brokerages.Template.Tests</RootNamespace>
<AssemblyTitle>QuantConnect.Brokerages.Template.Tests</AssemblyTitle>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using QuantConnect.Util;
using QuantConnect.Interfaces;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture]
public class TemplateBrokerageAdditionalTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using QuantConnect.Logging;
using QuantConnect.Data.Market;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture]
public partial class TemplateBrokerageTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using QuantConnect.Interfaces;
using QuantConnect.Util;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture, Ignore("This test requires a configured TemplateBrokerageFactory")]
public class TemplateBrokerageFactoryTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
using QuantConnect.Data.Market;
using QuantConnect.Lean.Engine.HistoricalData;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture, Ignore("Not implemented")]
public class TemplateBrokerageHistoryProviderTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

using NUnit.Framework;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture, Ignore("Not implemented")]
public class TemplateBrokerageSymbolMapperTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using QuantConnect.Securities;
using QuantConnect.Tests.Brokerages;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture, Ignore("Not implemented")]
public partial class TemplateBrokerageTests : BrokerageTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using System;
using System.Linq;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture, Ignore("This test requires a configured TemplateExchangeInfoDownloader")]
public class TemplateExchangeInfoDownloaderTests
Expand Down
2 changes: 1 addition & 1 deletion QuantConnect.TemplateBrokerage.Tests/TestSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using QuantConnect.Logging;
using QuantConnect.Configuration;

namespace QuantConnect.TemplateBrokerage.Tests
namespace QuantConnect.Brokerages.Template.Tests
{
[TestFixture]
public class TestSetup
Expand Down
2 changes: 1 addition & 1 deletion QuantConnect.TemplateBrokerage.ToolBox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using QuantConnect.Configuration;
using static QuantConnect.Configuration.ApplicationParser;

namespace QuantConnect.TemplateBrokerage.ToolBox
namespace QuantConnect.Brokerages.Template.ToolBox
{
static class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<TargetFramework>net6.0</TargetFramework>
<Copyright>Copyright © 2021</Copyright>
<OutputPath>bin\$(Configuration)\</OutputPath>
<Product>QuantConnect.TemplateBrokerage.ToolBox</Product>
<AssemblyName>QuantConnect.TemplateBrokerage.ToolBox</AssemblyName>
<RootNamespace>QuantConnect.TemplateBrokerage.ToolBox</RootNamespace>
<AssemblyTitle>QuantConnect.TemplateBrokerage.ToolBox</AssemblyTitle>
<Product>QuantConnect.Brokerages.Template.ToolBox</Product>
<AssemblyName>QuantConnect.Brokerages.Template.ToolBox</AssemblyName>
<RootNamespace>QuantConnect.Brokerages.Template.ToolBox</RootNamespace>
<AssemblyTitle>QuantConnect.Brokerages.Template.ToolBox</AssemblyTitle>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using QuantConnect.Data;
using System.Collections.Generic;

namespace QuantConnect.TemplateBrokerage.ToolBox
namespace QuantConnect.Brokerages.Template.ToolBox
{
/// <summary>
/// Template Brokerage Data Downloader implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using QuantConnect.ToolBox;
using System.Collections.Generic;

namespace QuantConnect.TemplateBrokerage.ToolBox
namespace QuantConnect.Brokerages.Template.ToolBox
{
/// <summary>
/// Template Brokerage implementation of <see cref="IExchangeInfoDownloader"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<TargetFramework>net6.0</TargetFramework>
<Product>QuantConnect.TemplateBrokerage</Product>
<AssemblyName>QuantConnect.TemplateBrokerage</AssemblyName>
<RootNamespace>QuantConnect.TemplateBrokerage</RootNamespace>
<AssemblyTitle>QuantConnect.TemplateBrokerage</AssemblyTitle>
<Product>QuantConnect.Brokerages.Template</Product>
<AssemblyName>QuantConnect.Brokerages.Template</AssemblyName>
<RootNamespace>QuantConnect.Brokerages.Template</RootNamespace>
<AssemblyTitle>QuantConnect.Brokerages.Template</AssemblyTitle>
<OutputType>Library</OutputType>
<OutputPath>bin\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down
4 changes: 1 addition & 3 deletions QuantConnect.TemplateBrokerage/TemplateBrokerage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
*/

using System;
using System.Linq;
using QuantConnect.Data;
using QuantConnect.Util;
using QuantConnect.Orders;
using QuantConnect.Packets;
using QuantConnect.Interfaces;
using QuantConnect.Securities;
using QuantConnect.Brokerages;
using System.Collections.Generic;

namespace QuantConnect.TemplateBrokerage
namespace QuantConnect.Brokerages.Template
{
[BrokerageFactory(typeof(TemplateBrokerageFactory))]
public class TemplateBrokerage : Brokerage, IDataQueueHandler, IDataQueueUniverseProvider
Expand Down
2 changes: 1 addition & 1 deletion QuantConnect.TemplateBrokerage/TemplateBrokerageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using QuantConnect.Securities;
using System.Collections.Generic;

namespace QuantConnect.TemplateBrokerage
namespace QuantConnect.Brokerages.Template
{
/// <summary>
/// Provides a template implementation of BrokerageFactory
Expand Down

0 comments on commit 3a93119

Please sign in to comment.