Skip to content

Commit 6697dfe

Browse files
authored
Merge pull request #12 from guibranco/develop
Develop
2 parents 4ce45c2 + daf7f40 commit 6697dfe

File tree

18 files changed

+408
-246
lines changed

18 files changed

+408
-246
lines changed

.gitattributes

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

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/feature_request.md

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

CrispyWaffle.sln

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28307.852
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CrispyWaffle", "Src\CrispyWaffle\CrispyWaffle.csproj", "{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"
7-
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CrispyWaffle.Tests", "Tests\CrispyWaffle.Tests\CrispyWaffle.Tests.csproj", "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
9-
EndProject
10-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{2FD912BD-34A5-4F9E-8192-CD7AEFD572B5}"
11-
EndProject
12-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{AA14B952-E519-4983-BF49-E106490AAF1F}"
13-
EndProject
14-
Global
15-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16-
Debug|Any CPU = Debug|Any CPU
17-
Release|Any CPU = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20-
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Release|Any CPU.Build.0 = Release|Any CPU
24-
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25-
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
26-
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
27-
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Release|Any CPU.Build.0 = Release|Any CPU
28-
EndGlobalSection
29-
GlobalSection(SolutionProperties) = preSolution
30-
HideSolutionNode = FALSE
31-
EndGlobalSection
32-
GlobalSection(NestedProjects) = preSolution
33-
{9A19103F-16F7-4668-BE54-9A1E7A4F7556} = {2FD912BD-34A5-4F9E-8192-CD7AEFD572B5}
34-
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} = {AA14B952-E519-4983-BF49-E106490AAF1F}
35-
EndGlobalSection
36-
GlobalSection(ExtensibilityGlobals) = postSolution
37-
SolutionGuid = {FAE960DB-B996-4FB3-858C-61BA7C7CD86E}
38-
EndGlobalSection
39-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29920.165
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{2FD912BD-34A5-4F9E-8192-CD7AEFD572B5}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{AA14B952-E519-4983-BF49-E106490AAF1F}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CrispyWaffle", "Src\CrispyWaffle\CrispyWaffle.csproj", "{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"
11+
EndProject
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CrispyWaffle.Tests", "Tests\CrispyWaffle.Tests\CrispyWaffle.Tests.csproj", "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{03FD84F8-33BC-49F7-9820-CF7B7724B0D5}"
15+
ProjectSection(SolutionItems) = preProject
16+
appveyor.yml = appveyor.yml
17+
README.md = README.md
18+
EndProjectSection
19+
EndProject
20+
Global
21+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
22+
Debug|Any CPU = Debug|Any CPU
23+
Release|Any CPU = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}.Release|Any CPU.Build.0 = Release|Any CPU
34+
EndGlobalSection
35+
GlobalSection(SolutionProperties) = preSolution
36+
HideSolutionNode = FALSE
37+
EndGlobalSection
38+
GlobalSection(NestedProjects) = preSolution
39+
{9A19103F-16F7-4668-BE54-9A1E7A4F7556} = {2FD912BD-34A5-4F9E-8192-CD7AEFD572B5}
40+
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} = {AA14B952-E519-4983-BF49-E106490AAF1F}
41+
EndGlobalSection
42+
GlobalSection(ExtensibilityGlobals) = postSolution
43+
SolutionGuid = {FAE960DB-B996-4FB3-858C-61BA7C7CD86E}
44+
EndGlobalSection
45+
EndGlobal

CrispyWaffle.sln.DotSettings

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

README.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,61 @@
11
# CrispyWaffle 🧇
2-
The CrispyWaffle project - a toolkit for dotNet (framework & core) projects
2+
3+
The CrispyWaffle project - a toolkit for dotNet (both Core & Framework) projects
4+
5+
![Crispy Waffle logo](https://raw.githubusercontent.com/guibranco/CrispyWaffle/master/logo.png)
6+
7+
## CI/CD
38

49
[![Build status](https://ci.appveyor.com/api/projects/status/dr93gad0na076ng3?svg=true)](https://ci.appveyor.com/project/guibranco/crispywaffle)
510
[![CrispyWaffle NuGet Version](https://img.shields.io/nuget/v/CrispyWaffle.svg?style=flat)](https://www.nuget.org/packages/CrispyWaffle/)
611
[![CrispyWaffle NuGet Downloads](https://img.shields.io/nuget/dt/CrispyWaffle.svg?style=flat)](https://www.nuget.org/packages/CrispyWaffle/)
712
[![Github All Releases](https://img.shields.io/github/downloads/guibranco/CrispyWaffle/total.svg?style=flat)](https://github.com/guibranco/CrispyWaffle)
8-
![Last release](https://img.shields.io/github/release-date/guibranco/crispywaffle.svg?style=flat)
13+
[![Last release](https://img.shields.io/github/release-date/guibranco/CrispyWaffle.svg?style=flat)](https://github.com/guibranco/CrispyWaffle)
14+
15+
## Code Quality
916

10-
[![codecov](https://codecov.io/gh/guibranco/crispywaffle/branch/master/graph/badge.svg)](https://codecov.io/gh/guibranco/crispywaffle)
17+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f9e814c726bb4ccb8b0380b1fd882f4b)](https://www.codacy.com/manual/guilherme_9/CrispyWaffle?utm_source=github.com&utm_medium=referral&utm_content=guibranco/CrispyWaffle&utm_campaign=Badge_Grade)
18+
[![codecov](https://codecov.io/gh/guibranco/CrispyWaffle/branch/master/graph/badge.svg)](https://codecov.io/gh/guibranco/CrispyWaffle)
1119
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=alert_status)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
20+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=coverage)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
21+
22+
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
1223
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=ncloc)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
1324
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=sqale_index)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
14-
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
15-
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=security_rating)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
25+
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
1626

17-
![Crispy Waffle log](https://raw.githubusercontent.com/guibranco/CrispyWaffle/master/logo.png)
27+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
28+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=security_rating)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
29+
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=code_smells)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
30+
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=bugs)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
31+
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CrispyWaffle&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=guibranco_CrispyWaffle)
1832

1933
---
2034

2135
## Installation
2236

2337
Download the latest zip file from the [Release](https://github.com/GuiBranco/CrispyWaffle/releases) pages or simple install from [NuGet](https://www.nuget.org/packages/CrispyWaffle) package manager
2438

25-
---
39+
NuGet URL: https://www.nuget.org/packages/CrispyWaffle
2640

27-
NuGet package: https://www.nuget.org/packages/CrispyWaffle
41+
NuGet installation via *Package Manager Console*:
2842

2943
```ps
3044
Install-Package CrispyWaffle
3145
```
46+
3247
---
3348

3449
## Changelog
3550

51+
Version 1.2 (2020-03-28) [@guibranco](https://github.com/guibranco)
52+
53+
- Add some unit tests
54+
- Update appveyor.yml with build enhancements and test coverages.
55+
- Update readme template
56+
3657
Version 1.1 (2019-09-27) [@guibranco](https://github.com/guibranco)
58+
3759
- Add Math Extensions (CrispyWaffle.Extensions.MathExtensions namespace)
3860
- Add Personal Data Validations (CrispyWaffle.Validations.PersonalDataValidations)
3961
- Rename method *FormatDocument* to *FormatBrazilianDocument* (CrispyWaffle.Extensions.ConversionExtensions)
@@ -43,7 +65,3 @@ Version 1.1 (2019-09-27) [@guibranco](https://github.com/guibranco)
4365
- Removed *CleanListItems* and *ToListString* (CrispyWaffle.Extensions.ConversionExtensions) **(Specific to application patterns)**
4466

4567
---
46-
47-
## TODO
48-
49-
- Add tests

Src/CrispyWaffle/Composition/ServiceLocator.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
using System;
2-
using System.Collections.Generic;
3-
4-
namespace CrispyWaffle.Composition
1+
namespace CrispyWaffle.Composition
52
{
63
using Extensions;
74
using Log;
5+
using System;
86
using System.Collections.Concurrent;
7+
using System.Collections.Generic;
98
using System.Linq;
109
using System.Reflection;
1110
using Telemetry;
@@ -77,12 +76,12 @@ static ServiceLocator()
7776
#region Private methods
7877

7978
/// <summary>
80-
/// Registers the lifeStyled internal.
79+
/// Registers the life styled internal.
8180
/// </summary>
8281
/// <param name="lifeStyle">The life style.</param>
8382
/// <param name="contract">The contract.</param>
8483
/// <param name="implementation">The implementation.</param>
85-
private static void RegisterlifeStyledInternal(LifeStyle lifeStyle, Type contract, Type implementation)
84+
private static void RegisterLifeStyledInternal(LifeStyle lifeStyle, Type contract, Type implementation)
8685
{
8786
RegistrationsCalls.Add(contract, 0);
8887

@@ -445,7 +444,7 @@ public static void Register<TContract>(TContract instance)
445444
public static void Register<TImplementation>(LifeStyle lifeStyle = LifeStyle.TRANSIENT)
446445
{
447446
var type = typeof(TImplementation);
448-
RegisterlifeStyledInternal(lifeStyle, type, type);
447+
RegisterLifeStyledInternal(lifeStyle, type, type);
449448
}
450449

451450
/// <summary>
@@ -457,7 +456,7 @@ public static void Register<TContract, TImplementation>(LifeStyle lifeStyle = Li
457456
{
458457
var contract = typeof(TContract);
459458
var implementation = typeof(TImplementation);
460-
RegisterlifeStyledInternal(lifeStyle, contract, implementation);
459+
RegisterLifeStyledInternal(lifeStyle, contract, implementation);
461460
}
462461

463462
/// <summary>

Src/CrispyWaffle/CrispyWaffle.csproj

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<ProjectGuid>9A19103F-16F7-4668-BE54-9A1E7A4F7556</ProjectGuid>
4-
<TargetFramework>netstandard2.0</TargetFramework>
5-
<LangVersion>latest</LangVersion>
5+
<TargetFramework>netstandard2.1</TargetFramework>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
7-
<Authors>Guilherme Branco Stracini</Authors>
7+
<Authors>Guilherme Branco Stracini</Authors>
8+
<Copyright>© 2020 Guilherme Branco Stracini. All rights reserved.</Copyright>
89
<Description>The CrispyWaffle toolkit for .NET projects</Description>
9-
<Copyright>© 2019 Guilherme Branco Stracini. All rights reserved.</Copyright>
10-
<PackageLicense>https://github.com/guibranco/CrispyWaffle/blob/master/LICENSE</PackageLicense>
11-
<PackageProjectUrl>https://github.com/guibranco/CrispyWaffle/</PackageProjectUrl>
10+
<PackageProjectUrl>https://github.com/guibranco/CrispyWaffle</PackageProjectUrl>
1211
<RepositoryUrl>https://github.com/guibranco/CrispyWaffle</RepositoryUrl>
1312
<RepositoryType>GIT</RepositoryType>
1413
<PackageTags>toolkit sdk framework library lib</PackageTags>
1514
<PackageIconUrl>https://raw.githubusercontent.com/guibranco/CrispyWaffle/master/logo.png</PackageIconUrl>
15+
<PackageIcon>logo.png</PackageIcon>
1616
<Version>1.0.0</Version>
1717
<AssemblyVersion>1.0.0.0</AssemblyVersion>
18+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1819
</PropertyGroup>
20+
1921
<ItemGroup>
20-
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
22+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2123
<PackageReference Include="System.Security.Permissions" Version="4.5.0" />
2224
</ItemGroup>
23-
</Project>
25+
26+
<ItemGroup>
27+
<None Include="../../LICENSE" Pack="true" PackagePath="\"/>
28+
<None Include="../../logo.png" Pack="true" PackagePath="\"/>
29+
</ItemGroup>
30+
</Project>

0 commit comments

Comments
 (0)