Skip to content

Commit

Permalink
Merge branch 'main' of github.com:panoramicdata/LogicMonitor.Api
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Mar 17, 2024
2 parents 5a0d7a3 + 9381bf0 commit fdeb2dc
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 185 deletions.
10 changes: 10 additions & 0 deletions LogicMonitor.Api.Test/Devices/DeviceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ public async Task GetDeviceByDeviceId()
device.Should().NotBeNull();
}

[Fact]
public async Task GetDeviceByNonExistentDeviceIdShouldFail()
{
// This should fail as the Device does not exist
LogicMonitorClient
.Invoking(async x => await LogicMonitorClient.GetAsync<Device>(12345678, default).ConfigureAwait(true))
.Should()
.ThrowAsync<LogicMonitorApiException>();
}

[Fact]
public async Task GetDeviceByDisplayNameAsync()
{
Expand Down
Loading

0 comments on commit fdeb2dc

Please sign in to comment.