-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Vonage.Common library * Remove unused changelog * Update readme file
- Loading branch information
Showing
138 changed files
with
613 additions
and
569 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Vonage.Common.Test/Extensions/FluentAssertionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Vonage.Common.Monads; | ||
|
||
namespace Vonage.Common.Test.Extensions | ||
{ | ||
public static class FluentAssertionExtensions | ||
{ | ||
public static MaybeAssertionExtensions<T> Should<T>(this Maybe<T> instance) => new(instance); | ||
|
||
public static ResultAssertionExtension<T> Should<T>(this Result<T> instance) => new(instance); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...rver.Test/Extensions/FsCheckExtensions.cs → ...mmon.Test/Extensions/FsCheckExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...st/Extensions/MaybeAssertionExtensions.cs → ...st/Extensions/MaybeAssertionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...st/Extensions/ResultAssertionExtension.cs → ...st/Extensions/ResultAssertionExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions
7
...ailures/HttpFailureDeserializationTest.cs → ...ailures/HttpFailureDeserializationTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...r.Test/Common/Failures/HttpFailureTest.cs → ...e.Common.Test/Failures/HttpFailureTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...Test/Common/Failures/ResultFailureTest.cs → ...Common.Test/Failures/ResultFailureTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...ge.Server.Test/Common/Monads/MaybeTest.cs → Vonage.Common.Test/Monads/MaybeTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 6 additions & 9 deletions
15
...e.Server.Test/Common/Monads/ResultTest.cs → Vonage.Common.Test/Monads/ResultTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Vonage.Common.Test/Serialization/EnumDescriptionJsonConverterTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using FluentAssertions; | ||
using Vonage.Common.Serialization; | ||
|
||
namespace Vonage.Common.Test.Serialization | ||
{ | ||
public class EnumDescriptionJsonConverterTest | ||
{ | ||
private readonly EnumDescriptionJsonConverter<DummyEnum> converter; | ||
|
||
public EnumDescriptionJsonConverterTest() | ||
{ | ||
this.converter = new EnumDescriptionJsonConverter<DummyEnum>(); | ||
} | ||
|
||
[Fact] | ||
public void HandleNull_ShouldReturnTrue() => this.converter.HandleNull.Should().BeTrue(); | ||
|
||
private enum DummyEnum | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.