Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit dd8ed9f

Browse files
authored
Use Guard.NET v1.0.0.2 without explicit error message (#55)
* Update Guards.Net Signed-off-by: Tom Kerkhove <[email protected]> * Switch to Guard.NET
1 parent de1d9a4 commit dd8ed9f

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

src/Codit.ApiApps.ActiveDirectory/Codit.ApiApps.ActiveDirectory.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<Reference Include="AutoMapper, Version=6.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
3030
<HintPath>..\packages\AutoMapper.6.1.1\lib\net45\AutoMapper.dll</HintPath>
3131
</Reference>
32-
<Reference Include="Guard, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
33-
<HintPath>..\packages\Guard.NET.1.0.0\lib\net461\Guard.dll</HintPath>
32+
<Reference Include="Guard, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL">
33+
<HintPath>..\packages\Guard.NET.1.0.0.2\lib\net461\Guard.dll</HintPath>
3434
</Reference>
3535
<Reference Include="Microsoft.ApplicationInsights, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
3636
<HintPath>..\packages\Microsoft.ApplicationInsights.2.4.0\lib\net46\Microsoft.ApplicationInsights.dll</HintPath>

src/Codit.ApiApps.ActiveDirectory/Repositories/UserRepository.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ public class UserRepository : ActiveDirectoryRepository
1919
/// <param name="userPrincipleName">User principle name of the user</param>
2020
public async Task<Maybe<User>> Get(string userPrincipleName)
2121
{
22-
Guard.Guard.NotNullOrEmpty(userPrincipleName, nameof(userPrincipleName),
23-
"No user principle name was specified");
22+
Guard.Guard.NotNullOrEmpty(userPrincipleName, nameof(userPrincipleName));
2423

2524
var activeDirectoryClient = GetActiveDirectoryClient();
2625

src/Codit.ApiApps.ActiveDirectory/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="AutoMapper" version="6.1.1" targetFramework="net462" />
4-
<package id="Guard.NET" version="1.0.0" targetFramework="net462" />
4+
<package id="Guard.NET" version="1.0.0.2" targetFramework="net462" />
55
<package id="Microsoft.ApplicationInsights" version="2.4.0" targetFramework="net462" />
66
<package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net462" />
77
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net462" />

src/Codit.ApiApps.Common/Codit.ApiApps.Common.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
4949
</PropertyGroup>
5050
<ItemGroup>
51-
<Reference Include="Guard, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
52-
<HintPath>..\packages\Guard.NET.1.0.0\lib\net461\Guard.dll</HintPath>
51+
<Reference Include="Guard, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL">
52+
<HintPath>..\packages\Guard.NET.1.0.0.2\lib\net461\Guard.dll</HintPath>
5353
</Reference>
5454
<Reference Include="Microsoft.ApplicationInsights, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<HintPath>..\packages\Microsoft.ApplicationInsights.2.4.0\lib\net46\Microsoft.ApplicationInsights.dll</HintPath>

src/Codit.ApiApps.Common/Extensions/IDictionaryExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class IDictionaryExtensions
1717
/// <returns>Merged dictionary</returns>
1818
public static IDictionary<TKey, TValue> Merge<TKey, TValue>(this IDictionary<TKey, TValue> destination, IDictionary<TKey, TValue> source, Func<KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>> manipulationFunc)
1919
{
20-
Guard.Guard.NotNull(destination, nameof(destination), "No destination dictionary was provided");
20+
Guard.Guard.NotNull(destination, nameof(destination));
2121

2222
if (source == null)
2323
{
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Guard.NET" version="1.0.0" targetFramework="net462" />
3+
<package id="Guard.NET" version="1.0.0.2" targetFramework="net462" />
44
<package id="Microsoft.ApplicationInsights" version="2.4.0" targetFramework="net462" />
55
<package id="System.Diagnostics.DiagnosticSource" version="4.4.0" targetFramework="net462" />
66
</packages>

0 commit comments

Comments
 (0)