Tests: Add tests for Page.

This commit is contained in:
2023-05-30 02:41:53 +02:00
parent bde23a865b
commit 61fce0efb7
3 changed files with 130 additions and 2 deletions

View File

@@ -55,7 +55,14 @@ public class FakeWebContext : IWebContext
throw new NotImplementedException();
}
public bool ResponseHasStarted => false;
private bool _responseHasStarted;
public void FakeSetResponseHasStarted(bool responseHasStarted)
{
_responseHasStarted = responseHasStarted;
}
public bool ResponseHasStarted => _responseHasStarted;
public int ResponseStatusCode { get; set; } = 200;