Skip to content

Commit 127143c

Browse files
committed
rename
1 parent fcbeed5 commit 127143c

File tree

8 files changed

+41
-30
lines changed

8 files changed

+41
-30
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: csharp
2-
solution: Unity.CommonLogging.sln
2+
solution: Common.Logging.Unity.sln
33
mono: none
44
dotnet: 2.1.401
55

66
install:
77
- dotnet restore
88

99
script:
10-
- dotnet test tests/Unity.CommonLogging.Tests/Unity.CommonLogging.Tests.csproj
10+
- dotnet test tests/Common.Logging.Unity.Tests/Common.Logging.Unity.Tests.csproj

Unity.CommonLogging.sln renamed to Common.Logging.Unity.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D52A4C36-FA9
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{C3EEBD1B-19B9-4CD9-BB36-829122D13BED}"
99
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Unity.CommonLogging", "src\Unity.CommonLogging\Unity.CommonLogging.csproj", "{68A775E0-9E06-4A0A-BB05-4A24F1E57749}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Logging.Unity", "src\Common.Logging.Unity\Common.Logging.Unity.csproj", "{68A775E0-9E06-4A0A-BB05-4A24F1E57749}"
1111
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Unity.CommonLogging.Tests", "tests\Unity.CommonLogging.Tests\Unity.CommonLogging.Tests.csproj", "{7594A6CE-18AE-4D84-94C6-D22D326195A4}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Logging.Unity.Tests", "tests\Common.Logging.Unity.Tests\Common.Logging.Unity.Tests.csproj", "{7594A6CE-18AE-4D84-94C6-D22D326195A4}"
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution items", "Solution items", "{C2C5AE44-5E99-4E82-B70F-9DB06200761B}"
1515
ProjectSection(SolutionItems) = preProject

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Unity.CommonLogging [![Build Status](https://travis-ci.com/mikecud/Unity.CommonLogging.svg?branch=master)](https://travis-ci.com/mikecud/Unity.CommonLogging)
1+
# Common.Logging.Unity [![Build Status](https://travis-ci.com/mikecud/Common.Logging.Unity.svg?branch=master)](https://travis-ci.com/mikecud/Common.Logging.Unity)
22

33
Unity extension to integrate with [Common.Logging](https://github.com/net-commons/common-logging) logging abstraction.
44

55
## Installation
66

7-
Unity.CommonLogging is available on NuGet. Just search for "Unity.CommonLogging" in NuGet Package Manager or use command:
7+
Common.Logging.Unity is available on NuGet. Just search for "Common.Logging.Unity" in NuGet Package Manager or use command:
88
```
9-
Install-Package Unity.CommonLogging
9+
Install-Package Common.Logging.Unity
1010
```
1111

1212
## Usage
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard1.3;net40</TargetFrameworks>
5+
<Authors>mikecud</Authors>
6+
<Company />
7+
<Description>Unity extension to integrate with Common.Logging logging abstraction.</Description>
8+
<PackageLicenseUrl>https://github.com/mikecud/Common.Logging.Unity/blob/master/LICENSE.md</PackageLicenseUrl>
9+
<PackageProjectUrl>https://github.com/mikecud/Common.Logging.Unity</PackageProjectUrl>
10+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
11+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
12+
<PackageTags>unitycontainer</PackageTags>
13+
<Version>1.0.0</Version>
14+
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<PackageReference Include="Common.Logging" Version="3.4.1" />
18+
<PackageReference Include="Unity.Container" Version="5.10.1" />
19+
</ItemGroup>
20+
21+
</Project>

src/Unity.CommonLogging/CommonLoggingExtension.cs renamed to src/Common.Logging.Unity/CommonLoggingExtension.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
using Common.Logging;
2-
using System;
3-
using System.Security;
1+
using System.Security;
2+
using Unity;
43
using Unity.Builder;
54
using Unity.Extension;
65
using Unity.Policy;
76
using Unity.Resolution;
87

9-
namespace Unity.CommonLogging
8+
namespace Common.Logging.Unity
109
{
1110
[SecuritySafeCritical]
1211
public class CommonLoggingExtension : UnityContainerExtension

src/Unity.CommonLogging/Unity.CommonLogging.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/Unity.CommonLogging.Tests/Unity.CommonLogging.Tests.csproj renamed to tests/Common.Logging.Unity.Tests/Common.Logging.Unity.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<ProjectReference Include="..\..\src\Unity.CommonLogging\Unity.CommonLogging.csproj" />
22+
<ProjectReference Include="..\..\src\Common.Logging.Unity\Common.Logging.Unity.csproj" />
2323
</ItemGroup>
2424

2525
</Project>

tests/Unity.CommonLogging.Tests/CommongLoggingExtensionTests.cs renamed to tests/Common.Logging.Unity.Tests/CommongLoggingExtensionTests.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Common.Logging;
21
using Common.Logging.Configuration;
32
using Common.Logging.Simple;
43
using FluentAssertions;
4+
using Unity;
55
using Xunit;
66

7-
namespace Unity.CommonLogging.Tests
7+
namespace Common.Logging.Unity.Tests
88
{
99
/// <summary>
1010
/// Test class that depends on logger
@@ -28,10 +28,13 @@ public class CommongLoggingExtensionTests
2828
public void ResolveTestClass_TestClassHasLoggerOfProperType()
2929
{
3030
// Arrange
31-
var config = new LogConfiguration();
32-
config.FactoryAdapter = new FactoryAdapterConfiguration();
33-
config.FactoryAdapter.Type = typeof(DebugLoggerFactoryAdapter).FullName;
34-
LogManager.Configure(config);
31+
LogManager.Configure(new LogConfiguration
32+
{
33+
FactoryAdapter = new FactoryAdapterConfiguration
34+
{
35+
Type = typeof(DebugLoggerFactoryAdapter).FullName
36+
}
37+
});
3538

3639
var logger = LogManager.GetLogger<CommongLoggingExtensionTestClass>() as DebugOutLogger;
3740
var container = new UnityContainer();

0 commit comments

Comments
 (0)