-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified exceptions and updated some gaps in tests
- Loading branch information
Showing
20 changed files
with
147 additions
and
371 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
21 changes: 0 additions & 21 deletions
21
src/MtgApiManager.Lib.Test/Core/Exceptions/BadRequestExceptionTest.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/MtgApiManager.Lib.Test/Core/Exceptions/ForbiddenExceptionTest.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/MtgApiManager.Lib.Test/Core/Exceptions/InternalServerErrorExceptionTest.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/MtgApiManager.Lib.Test/Core/Exceptions/NotFoundExceptionTest.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/MtgApiManager.Lib.Test/Core/Exceptions/ServiceUnavailableExceptionTest.cs
This file was deleted.
Oops, something went wrong.
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
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
38 changes: 38 additions & 0 deletions
38
src/MtgApiManager.Lib.Test/Service/SetQueryParameterTests.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,38 @@ | ||
using MtgApiManager.Lib.Service; | ||
using Xunit; | ||
|
||
namespace MtgApiManager.Lib.Test.Service | ||
{ | ||
public class SetQueryParameterTests | ||
{ | ||
[Fact] | ||
public void SetQueryParameter_BlockSet_Success() | ||
{ | ||
// arrange | ||
const string BLOCK = "block1"; | ||
var queryParams = new SetQueryParameter | ||
{ | ||
// act | ||
Block = BLOCK | ||
}; | ||
|
||
// assert | ||
Assert.Equal(BLOCK, queryParams.Block); | ||
} | ||
|
||
[Fact] | ||
public void SetQueryParameter_NameSet_Success() | ||
{ | ||
// arrange | ||
const string NAME = "name1"; | ||
var queryParams = new SetQueryParameter | ||
{ | ||
// act | ||
Name = NAME | ||
}; | ||
|
||
// assert | ||
Assert.Equal(NAME, queryParams.Name); | ||
} | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
src/MtgApiManager.Lib/Core/Exceptions/BadRequestException.cs
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/MtgApiManager.Lib/Core/Exceptions/ForbiddenException.cs
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/MtgApiManager.Lib/Core/Exceptions/InternalServerErrorException.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.