Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 455b256

Browse files
authored
Merge pull request #529 from raboud/CreateOrder
Create order
2 parents 52efbfd + 49cf975 commit 455b256

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/Services/Ordering/Ordering.API/Application/Commands/IdentifiedCommandHandler.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ public async Task<R> Handle(IdentifiedCommand<T, R> message, CancellationToken c
4848
else
4949
{
5050
await _requestManager.CreateRequestForCommandAsync<T>(message.Id);
51-
52-
// Send the embeded business command to mediator so it runs its related CommandHandler
53-
var result = await _mediator.Send(message.Command);
54-
55-
return result;
51+
try
52+
{
53+
// Send the embeded business command to mediator so it runs its related CommandHandler
54+
var result = await _mediator.Send(message.Command);
55+
return result;
56+
}
57+
catch
58+
{
59+
return default(R);
60+
}
5661
}
5762
}
5863
}

test/Services/IntegrationTests/IntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
5-
<AssemblyName>FunctionalTests</AssemblyName>
6-
<PackageId>FunctionalTests</PackageId>
5+
<AssemblyName>IntegrationTests</AssemblyName>
6+
<PackageId>IntegrationTests</PackageId>
77
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
88
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
99
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

0 commit comments

Comments
 (0)