Skip to content

Commit

Permalink
Refactor rename Fdc3.Json to Fdc3.NewtonsoftJson (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito authored Apr 10, 2023
1 parent 3b0a573 commit 95ec225
Show file tree
Hide file tree
Showing 33 changed files with 121 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Pack Fdc3.Json
run:
dotnet pack src/Fdc3.Json/MorganStanley.Fdc3.Json.csproj --no-build --configuration Release --output packages
dotnet pack src/Fdc3.NewtonsoftJson/MorganStanley.Fdc3.NewtonsoftJson.csproj --no-build --configuration Release --output packages

- name: Upload
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion src/Examples/WpfFdc3/ViewModels/WorkbenchViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

using MorganStanley.Fdc3;
using MorganStanley.Fdc3.Context;
using MorganStanley.Fdc3.Json.Serialization;
using MorganStanley.Fdc3.NewtonsoftJson.Serialization;
using Newtonsoft.Json;
using Prism.Commands;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion src/Examples/WpfFdc3/WpfFdc3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Fdc3.Json\MorganStanley.Fdc3.Json.csproj" />
<ProjectReference Include="..\..\Fdc3.NewtonsoftJson\MorganStanley.Fdc3.NewtonsoftJson.csproj" />
<ProjectReference Include="..\..\Fdc3\MorganStanley.Fdc3.csproj" />
</ItemGroup>

Expand Down
49 changes: 0 additions & 49 deletions src/Fdc3.Json/MorganStanley.Fdc3.Json.csproj

This file was deleted.

49 changes: 49 additions & 0 deletions src/Fdc3.NewtonsoftJson/MorganStanley.Fdc3.NewtonsoftJson.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<RootNamespace>MorganStanley.Fdc3.NewtonsoftJson</RootNamespace>
<AssemblyName>MorganStanley.Fdc3.NewtonsoftJson</AssemblyName>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>alpha.3</VersionSuffix>
<Product>.NET FDC3 Newtonsoft JSON</Product>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\keypair.snk</AssemblyOriginatorKeyFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<RepositoryUrl>https://github.com/morganstanley/fdc3-dotnet</RepositoryUrl>
<Description>.NET Standard 2.0 FDC3 JSON helpers based on Newtonsoft.Json for use with MorganStanley.Fdc3.</Description>
<Tags>FDC3</Tags>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>9999</WarningLevel>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<WarningLevel>9999</WarningLevel>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Fdc3\MorganStanley.Fdc3.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using Newtonsoft.Json.Serialization;

namespace MorganStanley.Fdc3.Json.Serialization
namespace MorganStanley.Fdc3.NewtonsoftJson.Serialization
{
public class Fdc3CamelCaseNamingStrategy : CamelCaseNamingStrategy
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;

namespace MorganStanley.Fdc3.Json.Serialization
namespace MorganStanley.Fdc3.NewtonsoftJson.Serialization
{
public class Fdc3JsonSerializerSettings : JsonSerializerSettings
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
using Newtonsoft.Json.Linq;
using System;

namespace MorganStanley.Fdc3.Json.Serialization
namespace MorganStanley.Fdc3.NewtonsoftJson.Serialization
{
public class RecipientJsonConverter : JsonConverter
public class RecipientJsonConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Fdc3/MorganStanley.Fdc3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RootNamespace>MorganStanley.Fdc3</RootNamespace>
<AssemblyName>MorganStanley.Fdc3</AssemblyName>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>alpha.2</VersionSuffix>
<VersionSuffix>alpha.3</VersionSuffix>
<Product>.NET FDC3</Product>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\keypair.snk</AssemblyOriginatorKeyFile>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class ChartTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class ChatInitSettingsTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class ContactListTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;
public class ContactTests : ContextSchemaTest
{
public ContactTests()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/

using MorganStanley.Fdc3.Context;
using MorganStanley.Fdc3.Json.Serialization;
using MorganStanley.Fdc3.NewtonsoftJson.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Schema;
using System.Reflection;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public abstract partial class ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class CountryTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class CurrencyTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using MorganStanley.Fdc3.Context;
using System.Reflection;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class EmailTests : ContextSchemaTest
{
Expand All @@ -34,7 +34,7 @@ public async void Email_Contact_SerializedJsonMatchesSchema()
[Fact]
public void Email_Contact_DeserializedJsonMatchesProperties()
{
Email? email = this.Deserialize<Email>("MorganStanley.Fdc3.Json.Tests.Context.Examples.email-contact.json");
Email? email = this.Deserialize<Email>("MorganStanley.Fdc3.NewtonsoftJson.Tests.Context.Examples.email-contact.json");
Assert.NotNull(email);
Contact? contact = email?.Recipients as Contact;
Assert.Equal("email", contact?.ID?.Email);
Expand All @@ -54,7 +54,7 @@ public async void Email_ContactList_SerializedJsonMatchesSchema()
[Fact]
public void Email_ContactList_DeserializedJsonMatchesProperties()
{
Email? email = this.Deserialize<Email>("MorganStanley.Fdc3.Json.Tests.Context.Examples.email-contactList.json");
Email? email = this.Deserialize<Email>("MorganStanley.Fdc3.NewtonsoftJson.Tests.Context.Examples.email-contactList.json");
Assert.NotNull(email);
ContactList? contactList = email?.Recipients as ContactList;
Contact? contact = contactList?.Contacts?.First<Contact>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class InstrumentListTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class InstrumentTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class NothingTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class OrganizationTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class PortfolioTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class PositionTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class TimeRangeTests : ContextSchemaTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

using MorganStanley.Fdc3.Context;

namespace MorganStanley.Fdc3.Json.Tests.Context;
namespace MorganStanley.Fdc3.NewtonsoftJson.Tests.Context;

public class ValuationTests : ContextSchemaTest
{
Expand Down
Loading

0 comments on commit 95ec225

Please sign in to comment.