-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Thomas Anderson <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
Btms.Business.Tests/ImportNotificationTypeEnumExtensionsTests.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,34 @@ | ||
using Btms.Business.Extensions; | ||
using Btms.Model; | ||
using Btms.Model.Ipaffs; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
namespace Btms.Business.Tests; | ||
|
||
public class ImportNotificationTypeEnumExtensionsTests | ||
{ | ||
[Theory] | ||
[InlineData("9115", ImportNotificationTypeEnum.Chedpp)] | ||
[InlineData("C633", ImportNotificationTypeEnum.Chedpp)] | ||
[InlineData("N002", ImportNotificationTypeEnum.Chedpp)] | ||
[InlineData("N851", ImportNotificationTypeEnum.Chedpp)] | ||
[InlineData("C085", ImportNotificationTypeEnum.Chedpp)] | ||
|
||
[InlineData("N852", ImportNotificationTypeEnum.Ced)] | ||
[InlineData("C678", ImportNotificationTypeEnum.Ced)] | ||
|
||
[InlineData("C640", ImportNotificationTypeEnum.Cveda)] | ||
|
||
[InlineData("C641", ImportNotificationTypeEnum.Cvedp)] | ||
[InlineData("C673", ImportNotificationTypeEnum.Cvedp)] | ||
[InlineData("N853", ImportNotificationTypeEnum.Cvedp)] | ||
|
||
[InlineData("9HCG", null)] | ||
public void DocumentCode_ToChedType(string documentCode, ImportNotificationTypeEnum? expected) | ||
{ | ||
var result = documentCode.GetChedType(); | ||
|
||
result.Should().Be(expected); | ||
} | ||
} |
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