-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDMS-200 add test for movement not found (#23)
* CDMS-200 add test for movement not found CDMS-200 improved CachingBlobService implementation * CMDS-200 fixes tests * CDMS-200 refactors message processing * removes new test * Add decions in test generator and push to blob storage * Tidies up audit entry timings and source systems * Fixes up tests * Adds context to decisions * make audit entry version nullable * Handles checks in clearance request builder * Try to send clearance requests with the DecisionNumber set to the decision consumer * Updated TestDataGeneratorHelpers to use the bus to route to the consumers rather than call directly * tidy up the switch statement further * CDMS-200 adds ability to control sequencing of messages to builders * Switch Decisions to their own type * Switched back to using consumers directly * Finishes initial decision metrics * Tidied up code errors * Fixed up tests --------- Co-authored-by: Thomas Anderson <[email protected]>
- Loading branch information
1 parent
53326d0
commit 5259079
Showing
70 changed files
with
857 additions
and
226 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
16 changes: 16 additions & 0 deletions
16
Btms.Analytics.Tests/Helpers/ITestOutputHelperExtensions.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,16 @@ | ||
using MartinCostello.Logging.XUnit; | ||
using Microsoft.Extensions.Logging; | ||
using Xunit.Abstractions; | ||
|
||
namespace Btms.Analytics.Tests.Helpers; | ||
|
||
public static class ITestOutputHelperExtensions | ||
{ | ||
public static ILogger<T> GetLogger<T>(this ITestOutputHelper helper) | ||
{ | ||
var loggerProvider = new XUnitLoggerProvider(helper, new XUnitLoggerOptions()); | ||
var factory = new LoggerFactory([loggerProvider]); | ||
|
||
return factory.CreateLogger<T>(); | ||
} | ||
} |
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
Oops, something went wrong.