File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
src/FluentAssertions.AspNetCore.Mvc
tests/FluentAssertions.AspNetCore.Mvc.Tests Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ public AcceptedResultAssertions(AcceptedResult subject) : base(subject)
30
30
/// </summary>
31
31
public object Value => AcceptedResultSubject . Value ;
32
32
33
+ /// <summary>
34
+ /// The location on the AcceptedResult
35
+ /// </summary>
33
36
public string Location => AcceptedResultSubject . Location ;
34
37
35
38
#endregion
Original file line number Diff line number Diff line change @@ -29,13 +29,44 @@ public ChallengeResultAssertions(object subject) : base(subject)
29
29
#endregion
30
30
31
31
#region Public Properties
32
+ /// <summary>
33
+ /// The <see cref="ChallengeResult.Properties"/> that belongs to the ChallengeResult.
34
+ /// </summary>
32
35
public AuthenticationProperties AuthenticationProperties => ChallengeResultSubject . Properties ;
36
+
37
+ /// <summary>
38
+ /// The <see cref="AuthenticationProperties.Items"/> that belongs to the ChallengeResult.
39
+ /// </summary>
33
40
public IDictionary < string , string > Items => ChallengeResultSubject . Properties ? . Items ;
41
+
42
+ /// <summary>
43
+ /// The <see cref="AuthenticationProperties.IsPersistent"/> that belongs to the ChallengeResult.
44
+ /// </summary>
34
45
public bool IsPersistent => ChallengeResultSubject . Properties ? . IsPersistent ?? false ;
46
+
47
+ /// <summary>
48
+ /// The <see cref="AuthenticationProperties.RedirectUri"/> that belongs to the ChallengeResult.
49
+ /// </summary>
35
50
public string RedirectUri => ChallengeResultSubject . Properties ? . RedirectUri ;
51
+
52
+ /// <summary>
53
+ /// The <see cref="AuthenticationProperties.IssuedUtc"/> that belongs to the ChallengeResult.
54
+ /// </summary>
36
55
public DateTimeOffset ? IssuedUtc => ChallengeResultSubject . Properties ? . IssuedUtc ;
56
+
57
+ /// <summary>
58
+ /// The <see cref="AuthenticationProperties.ExpiresUtc"/> that belongs to the ChallengeResult.
59
+ /// </summary>
37
60
public DateTimeOffset ? ExpiresUtc => ChallengeResultSubject . Properties ? . ExpiresUtc ;
61
+
62
+ /// <summary>
63
+ /// The <see cref="AuthenticationProperties.AllowRefresh"/> that belongs to the ChallengeResult.
64
+ /// </summary>
38
65
public bool ? AllowRefresh => ChallengeResultSubject . Properties ? . AllowRefresh ;
66
+
67
+ /// <summary>
68
+ /// The <see cref="ChallengeResult.AuthenticationSchemes"/> that belongs to the ChallengeResult.
69
+ /// </summary>
39
70
public IList < string > AuthenticationSchemes => ChallengeResultSubject . AuthenticationSchemes ;
40
71
#endregion
41
72
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class FileResultAssertions_Tests
16
16
public void WithContentType_GivenExpectedValue_ShouldPass ( )
17
17
{
18
18
var actualValue = "text/plain" ;
19
- var expectedValue = string . Copy ( actualValue ) ;
19
+ var expectedValue = actualValue ;
20
20
ActionResult result = TestDataGenerator . CreateFileContentResult ( contentType : actualValue ) ;
21
21
22
22
result . Should ( ) . BeFileResult ( ) . WithContentType ( expectedValue ) ;
You can’t perform that action at this time.
0 commit comments