Skip to content

Commit f1614c4

Browse files
authoredJan 14, 2022
Merge pull request #29 from ChristopherHaws/chaws/wrong-base-classes
Fix base class on BadRequest and Conflict object result assertions
2 parents cab57d5 + 9e1d9fe commit f1614c4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎src/FluentAssertions.AspNetCore.Mvc/BadRequestObjectResultAssertions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using FluentAssertions.Execution;
2-
using FluentAssertions.Primitives;
32
using Microsoft.AspNetCore.Mvc;
43
using System.Diagnostics;
54

@@ -9,7 +8,7 @@ namespace FluentAssertions.AspNetCore.Mvc
98
/// Contains a number of methods to assert that a <see cref="BadRequestObjectResult"/> is in the expected state.
109
/// </summary>
1110
[DebuggerNonUserCode]
12-
public class BadRequestObjectResultAssertions : ObjectAssertions
11+
public class BadRequestObjectResultAssertions : ObjectResultAssertionsBase<BadRequestObjectResult, BadRequestObjectResultAssertions>
1312
{
1413
#region Public Constructors
1514
/// <summary>

‎src/FluentAssertions.AspNetCore.Mvc/ConflictObjectResultAssertions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using FluentAssertions.Execution;
2-
using FluentAssertions.Primitives;
32
using Microsoft.AspNetCore.Mvc;
43
using System.Diagnostics;
54

@@ -9,7 +8,7 @@ namespace FluentAssertions.AspNetCore.Mvc
98
/// Contains a number of methods to assert that a <see cref="ConflictObjectResult"/> is in the expected state.
109
/// </summary>
1110
[DebuggerNonUserCode]
12-
public class ConflictObjectResultAssertions : ObjectAssertions
11+
public class ConflictObjectResultAssertions : ObjectResultAssertionsBase<ConflictObjectResult, ConflictObjectResultAssertions>
1312
{
1413
#region Public Constructors
1514
/// <summary>

0 commit comments

Comments
 (0)
Failed to load comments.