File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 26
26
- name : Build
27
27
run : dotnet build --no-restore
28
28
working-directory : ./Catalog/
29
+ - name : Test
30
+ run : dotnet test --no-build --verbosity normal
31
+ working-directory : ./Catalog/
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public async Task GetProduct_NonExistingId_ReturnsNotFound()
141
141
{
142
142
// Arrange
143
143
_productRepositoryMock . Setup ( repo => repo . GetByIdAsync ( 1 ) )
144
- . ReturnsAsync ( ( Product ) null ) ;
144
+ . ReturnsAsync ( ( Product ) null ! ) ;
145
145
146
146
// Act
147
147
var result = await _controller . GetProduct ( 1 ) ;
@@ -196,7 +196,7 @@ public async Task Delete_NonExistingId_ReturnsNotFound()
196
196
{
197
197
// Arrange
198
198
_productRepositoryMock . Setup ( repo => repo . GetByIdAsync ( 1 ) )
199
- . ReturnsAsync ( ( Product ) null ) ;
199
+ . ReturnsAsync ( ( Product ) null ! ) ;
200
200
201
201
// Act
202
202
var result = await _controller . Delete ( 1 ) ;
You can’t perform that action at this time.
0 commit comments