-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
49 additions
and
47 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using BenchmarkDotNet.Attributes; | ||
using Dedge; | ||
using DEdge; | ||
|
||
namespace App | ||
{ | ||
|
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[<EntryPoint>] | ||
let main _ = | ||
let card = "4127540509730813" | ||
let isVisa = Dedge.Cardidy.Identify card |> Seq.head = Dedge.CardType.Visa | ||
let isVisa = DEdge.Cardidy.Identify card |> Seq.head = DEdge.CardType.Visa | ||
printfn "Is %s a visa: %b" card isVisa | ||
0 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Dedge; | ||
namespace DEdge; | ||
|
||
/// <summary> | ||
/// Current supported CardType | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/ACard.cs → src/DEdge.Cardidy/Model/ACard.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
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/ALuhnCard.cs → src/DEdge.Cardidy/Model/ALuhnCard.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
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/ASixteenCard.cs → src/DEdge.Cardidy/Model/ASixteenCard.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
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/Cards.cs → src/DEdge.Cardidy/Model/Cards.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
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/ICard.cs → src/DEdge.Cardidy/Model/ICard.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Dedge.Model; | ||
namespace DEdge.Model; | ||
|
||
internal interface ICard | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Dedge.Cardidy/Model/PaddedRange.cs → src/DEdge.Cardidy/Model/PaddedRange.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Dedge.Model; | ||
namespace DEdge.Model; | ||
|
||
internal record PaddedRange | ||
{ | ||
|
File renamed without changes
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Dedge; | ||
using DEdge; | ||
using NUnit.Framework; | ||
|
||
namespace Tests; | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Dedge; | ||
using DEdge; | ||
using NUnit.Framework; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Dedge; | ||
using DEdge; | ||
using NUnit.Framework; | ||
using System.Collections.Generic; | ||
|
||
|
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 |
---|---|---|
@@ -1,31 +1,33 @@ | ||
using Dedge; | ||
using DEdge; | ||
using NUnit.Framework; | ||
using System.Linq; | ||
|
||
namespace Tests; | ||
public class RandomizedTests | ||
{ | ||
private readonly Cardizer _cardizer = new Cardizer(); | ||
|
||
[Test(ExpectedResult = CardType.AmericanExpress)] | ||
public CardType ShouldIdentifyRandomAmex() => Cardidy.Identify(Cardizer.NextAmex()).First(); | ||
public CardType ShouldIdentifyRandomAmex() => Cardidy.Identify(_cardizer.NextAmex()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Discover)] | ||
public CardType ShouldIdentifyRandomDiscover() => Cardidy.Identify(Cardizer.NextDiscover()).First(); | ||
public CardType ShouldIdentifyRandomDiscover() => Cardidy.Identify(_cardizer.NextDiscover()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Jcb)] | ||
public CardType ShouldIdentifyRandomJcb() => Cardidy.Identify(Cardizer.NextJcb()).First(); | ||
public CardType ShouldIdentifyRandomJcb() => Cardidy.Identify(_cardizer.NextJcb()).First(); | ||
|
||
[Test(ExpectedResult = CardType.MasterCard)] | ||
public CardType ShouldIdentifyRandomMasterCard() => Cardidy.Identify(Cardizer.NextMasterCard()).First(); | ||
public CardType ShouldIdentifyRandomMasterCard() => Cardidy.Identify(_cardizer.NextMasterCard()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Mir)] | ||
public CardType ShouldIdentifyRandomMir() => Cardidy.Identify(Cardizer.NextMir()).First(); | ||
public CardType ShouldIdentifyRandomMir() => Cardidy.Identify(_cardizer.NextMir()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Uatp)] | ||
public CardType ShouldIdentifyRandomUatp() => Cardidy.Identify(Cardizer.NextUatp()).First(); | ||
public CardType ShouldIdentifyRandomUatp() => Cardidy.Identify(_cardizer.NextUatp()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Verve)] | ||
public CardType ShouldIdentifyRandomVerve() => Cardidy.Identify(Cardizer.NextVerve()).First(); | ||
public CardType ShouldIdentifyRandomVerve() => Cardidy.Identify(_cardizer.NextVerve()).First(); | ||
|
||
[Test(ExpectedResult = CardType.Visa)] | ||
public CardType ShouldIdentifyRandomVisa() => Cardidy.Identify(Cardizer.NextVisa()).First(); | ||
public CardType ShouldIdentifyRandomVisa() => Cardidy.Identify(_cardizer.NextVisa()).First(); | ||
} |
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