1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 21:48:12 -05:00
This commit is contained in:
Justin Baur 2025-03-06 11:19:33 -05:00
parent 9944154b08
commit 93b834e1d0
No known key found for this signature in database
4 changed files with 28 additions and 28 deletions

View File

@ -759,7 +759,7 @@ public class NotificationHubPushNotificationServiceTests
); );
} }
[Fact] [Fact]
public async Task PushSyncSendDeleteAsync_SendExpectedData() public async Task PushSyncSendDeleteAsync_SendExpectedData()
{ {
var userId = Guid.NewGuid(); var userId = Guid.NewGuid();

View File

@ -1,4 +1,4 @@
// TODO: Move to own file // TODO: Move to own file
using System.IdentityModel.Tokens.Jwt; using System.IdentityModel.Tokens.Jwt;
using System.Net; using System.Net;
using System.Net.Http.Json; using System.Net.Http.Json;

View File

@ -57,7 +57,7 @@ public class RelayPushNotificationServiceTests : PushTestBase
{ {
var sut = CreateService(); var sut = CreateService();
await Assert.ThrowsAsync<NotImplementedException>( await Assert.ThrowsAsync<NotImplementedException>(
async () => await sut.SendPayloadToInstallationAsync("installation_id", PushType.AuthRequest, new {}, null) async () => await sut.SendPayloadToInstallationAsync("installation_id", PushType.AuthRequest, new { }, null)
); );
} }
@ -66,7 +66,7 @@ public class RelayPushNotificationServiceTests : PushTestBase
{ {
var sut = CreateService(); var sut = CreateService();
await Assert.ThrowsAsync<NotImplementedException>( await Assert.ThrowsAsync<NotImplementedException>(
async () => await sut.SendPayloadToUserAsync("user_id", PushType.AuthRequest, new {}, null) async () => await sut.SendPayloadToUserAsync("user_id", PushType.AuthRequest, new { }, null)
); );
} }
@ -75,7 +75,7 @@ public class RelayPushNotificationServiceTests : PushTestBase
{ {
var sut = CreateService(); var sut = CreateService();
await Assert.ThrowsAsync<NotImplementedException>( await Assert.ThrowsAsync<NotImplementedException>(
async () => await sut.SendPayloadToOrganizationAsync("organization_id", PushType.AuthRequest, new {}, null) async () => await sut.SendPayloadToOrganizationAsync("organization_id", PushType.AuthRequest, new { }, null)
); );
} }
@ -388,7 +388,7 @@ public class RelayPushNotificationServiceTests : PushTestBase
["UserId"] = authRequest.UserId, ["UserId"] = authRequest.UserId,
["OrganizationId"] = null, ["OrganizationId"] = null,
["DeviceId"] = _deviceId, ["DeviceId"] = _deviceId,
["Identifier"] = DeviceIdentifier, ["Identifier"] = DeviceIdentifier,
["Type"] = 15, ["Type"] = 15,
["Payload"] = new JsonObject ["Payload"] = new JsonObject
{ {