This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
tests/ServiceLayer.Mesh.Tests/Functions Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
1010MailboxId = X26ABC1
1111MeshSharedKey = TestKey
1212MeshPassword = password
13- BSSMailBox = X26ABC1
13+ NBSSMailBoxId = X26ABC1
1414MeshApiBaseUrl = http://localhost:8700/messageexchange
1515ASPNETCORE_ENVIRONMENT = Development
1616FileDiscoveryTimerExpression = */5 * * * *
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ public async Task Run([TimerTrigger("%FileDiscoveryTimerExpression%")] TimerInfo
2020 logger . LogInformation ( $ "DiscoveryFunction started at: { DateTime . Now } ") ;
2121
2222 // TODO - abstract this out into an injectable configuration interface for testing purposes
23- var mailboxId = Environment . GetEnvironmentVariable ( "BSSMailBox " )
24- ?? throw new InvalidOperationException ( $ "Environment variable 'BSSMailBox ' is not set or is empty.") ;
23+ var mailboxId = Environment . GetEnvironmentVariable ( "NBSSMailBoxId " )
24+ ?? throw new InvalidOperationException ( $ "Environment variable 'NBSSMailBoxId ' is not set or is empty.") ;
2525
2626 var response = await meshInboxService . GetMessagesAsync ( mailboxId ) ;
2727
Original file line number Diff line number Diff line change 1919 // MESH Client config
2020 services
2121 . AddMeshClient ( _ => _ . MeshApiBaseUrl = Environment . GetEnvironmentVariable ( "MeshApiBaseUrl" ) )
22- . AddMailbox ( Environment . GetEnvironmentVariable ( "BSSMailBox " ) , new NHS . MESH . Client . Configuration . MailboxConfiguration
22+ . AddMailbox ( Environment . GetEnvironmentVariable ( "NBSSMailBoxId " ) , new NHS . MESH . Client . Configuration . MailboxConfiguration
2323 {
2424 Password = Environment . GetEnvironmentVariable ( "MeshPassword" ) ,
2525 SharedKey = Environment . GetEnvironmentVariable ( "MeshSharedKey" ) ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public FileDiscoveryFunctionTests()
3232
3333 _dbContext = new ServiceLayerDbContext ( options ) ;
3434
35- Environment . SetEnvironmentVariable ( "BSSMailBox " , "test-mailbox" ) ;
35+ Environment . SetEnvironmentVariable ( "NBSSMailBoxId " , "test-mailbox" ) ;
3636 Environment . SetEnvironmentVariable ( "QueueUrl" , "https://fakestorageaccount.queue.core.windows.net/testqueue" ) ;
3737
3838 _function = new FileDiscoveryFunction (
You can’t perform that action at this time.
0 commit comments