mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 19:21:10 +00:00
Adds unit tests improving presentation api project code coverage
This commit is contained in:
1 parent
042c5e4729
commit
f3578f88d1
8 files changed
+373
-10
No files matched your search
+4
-1
@@ -44,7 +44,10 @@ public class HttpContextCurrentUserServiceTests
|
||||
public void UserId_WhenUserIsNull_ShouldReturnNull()
|
||||
{
|
||||
// Arrange
|
||||
HttpContext mockHttpContext = new DefaultHttpContext();
|
||||
HttpContext mockHttpContext = new DefaultHttpContext
|
||||
{
|
||||
User = null
|
||||
};
|
||||
_mockHttpContextAccessor.HttpContext.Returns(mockHttpContext);
|
||||
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user