From fc7d98460afd96dff27b4736b46997e34540f110 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Wed, 30 Sep 2015 11:10:07 +0200 Subject: [PATCH 1/2] End of line fix --- .../Container/WindsorBusContainer.cs | 62 ++++++++-------- src/CastleWindsor/Properties/AssemblyInfo.cs | 72 +++++++++---------- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/src/CastleWindsor/Container/WindsorBusContainer.cs b/src/CastleWindsor/Container/WindsorBusContainer.cs index 897318c..5d68eb3 100644 --- a/src/CastleWindsor/Container/WindsorBusContainer.cs +++ b/src/CastleWindsor/Container/WindsorBusContainer.cs @@ -1,31 +1,31 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Castle.MicroKernel; - -namespace Nybus.Container -{ - public class WindsorBusContainer : IContainer - { - private readonly IKernel _kernel; - - public WindsorBusContainer(IKernel kernel) - { - if (kernel == null) throw new ArgumentNullException(nameof(kernel)); - - _kernel = kernel; - } - - public T Resolve() - { - return _kernel.Resolve(); - } - - public void Release(T component) - { - _kernel.ReleaseComponent(component); - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Castle.MicroKernel; + +namespace Nybus.Container +{ + public class WindsorBusContainer : IContainer + { + private readonly IKernel _kernel; + + public WindsorBusContainer(IKernel kernel) + { + if (kernel == null) throw new ArgumentNullException(nameof(kernel)); + + _kernel = kernel; + } + + public T Resolve() + { + return _kernel.Resolve(); + } + + public void Release(T component) + { + _kernel.ReleaseComponent(component); + } + } +} diff --git a/src/CastleWindsor/Properties/AssemblyInfo.cs b/src/CastleWindsor/Properties/AssemblyInfo.cs index 39140c3..b0fcbab 100644 --- a/src/CastleWindsor/Properties/AssemblyInfo.cs +++ b/src/CastleWindsor/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("CastleWindsor")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CastleWindsor")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("6021b01c-f24b-48b4-b774-d150ace2b6c3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CastleWindsor")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CastleWindsor")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6021b01c-f24b-48b4-b774-d150ace2b6c3")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] From 74144732b88ee9662955d6fcea244f5527179232 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Wed, 30 Sep 2015 11:23:04 +0200 Subject: [PATCH 2/2] Moved BusExtensions to Interfaces --- src/Core/Core.csproj | 1 - src/{Core => Interfaces}/BusExtensions.cs | 0 src/Interfaces/Interfaces.csproj | 1 + tests/Tests.Core/Tests.Core.csproj | 1 - .../BusExtensionsTests.cs | 20 +++++++++++++++++++ .../Tests.Interfaces/Tests.Interfaces.csproj | 1 + 6 files changed, 22 insertions(+), 2 deletions(-) rename src/{Core => Interfaces}/BusExtensions.cs (100%) rename tests/{Tests.Core => Tests.Interfaces}/BusExtensionsTests.cs (80%) diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 26cb82e..3de259c 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -40,7 +40,6 @@ - diff --git a/src/Core/BusExtensions.cs b/src/Interfaces/BusExtensions.cs similarity index 100% rename from src/Core/BusExtensions.cs rename to src/Interfaces/BusExtensions.cs diff --git a/src/Interfaces/Interfaces.csproj b/src/Interfaces/Interfaces.csproj index c8aff98..963a9dc 100644 --- a/src/Interfaces/Interfaces.csproj +++ b/src/Interfaces/Interfaces.csproj @@ -40,6 +40,7 @@ + diff --git a/tests/Tests.Core/Tests.Core.csproj b/tests/Tests.Core/Tests.Core.csproj index 1003782..898f334 100644 --- a/tests/Tests.Core/Tests.Core.csproj +++ b/tests/Tests.Core/Tests.Core.csproj @@ -52,7 +52,6 @@ - diff --git a/tests/Tests.Core/BusExtensionsTests.cs b/tests/Tests.Interfaces/BusExtensionsTests.cs similarity index 80% rename from tests/Tests.Core/BusExtensionsTests.cs rename to tests/Tests.Interfaces/BusExtensionsTests.cs index b885c51..58b37c7 100644 --- a/tests/Tests.Core/BusExtensionsTests.cs +++ b/tests/Tests.Interfaces/BusExtensionsTests.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -81,5 +82,24 @@ public async Task RaiseManyEvents_no_exception_if_commands_is_null() } + public class TestCommand : ICommand + { + public string StringValue { get; set; } + public int IntValue { get; set; } + public bool BoolValue { get; set; } + + public DateTimeOffset DateTimeOffsetValue { get; set; } + } + + public class TestEvent : IEvent + { + public string StringValue { get; set; } + public int IntValue { get; set; } + public bool BoolValue { get; set; } + + public DateTimeOffset DateTimeOffsetValue { get; set; } + } + + } } \ No newline at end of file diff --git a/tests/Tests.Interfaces/Tests.Interfaces.csproj b/tests/Tests.Interfaces/Tests.Interfaces.csproj index ece7fed..a8da077 100644 --- a/tests/Tests.Interfaces/Tests.Interfaces.csproj +++ b/tests/Tests.Interfaces/Tests.Interfaces.csproj @@ -52,6 +52,7 @@ +