mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
fixed tests and adding new sessions when it not needed
This commit is contained in:
@@ -157,16 +157,6 @@ private Mock<ILogger<ProfileController>> _mockLogger = null!;
|
||||
)), Times.Once);
|
||||
|
||||
_mockProfileService.Verify(s => s.SetNewIcon(_userId, mediaId), Times.Once);
|
||||
|
||||
_mockClientProxy.Verify(
|
||||
c => c.SendCoreAsync("AvatarUpdated", It.Is<object?[]>(
|
||||
args => args.Length == 1 &&
|
||||
JObject.FromObject(args[0]!).Value<Guid>("userId") == _userId &&
|
||||
JObject.FromObject(args[0]!).Value<Guid>("iconId") == mediaId
|
||||
), It.IsAny<CancellationToken>()),
|
||||
Times.Once,
|
||||
"Hub SendAsync must be called to notify clients."
|
||||
);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user