mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
SessionControllerTests
This commit is contained in:
@@ -34,7 +34,10 @@ public class UserSessionReaderTests
|
||||
public async Task GetAllUserSessionsAsync_ShouldReturnAllUserSessions()
|
||||
{
|
||||
// Arrange
|
||||
var sessios = _fixture.CreateMany<UserSession>().ToList();
|
||||
var sessios = _fixture.Build<UserSession>()
|
||||
.With(f => f.IsRevoked, false)
|
||||
.CreateMany().ToList();
|
||||
|
||||
var userId = Guid.NewGuid();
|
||||
|
||||
_mockUserSessionsRepository.Setup(f => f.GetByUserIdAsync(userId))
|
||||
|
||||
Reference in New Issue
Block a user