Skip to content

Commit

Permalink
Code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Jan 9, 2024
1 parent ab443ee commit 50d4e10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions LogicMonitor.Api.Test/Dashboards/WidgetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,6 @@ public async Task GetWidgetById()
getWidget.Name.Should().Be(widget.Name);
}


[Fact]
public async Task GetAndSaveWidgetById()
{
var widget = (await LogicMonitorClient
.GetWidgetListAsync(new Filter<Widget>(), default)
.ConfigureAwait(true)).Items[0];

var getWidget = await LogicMonitorClient
.GetWidgetByIdAsync(widget.Id, default)
.ConfigureAwait(true);

getWidget.Name.Should().Be(widget.Name);

await LogicMonitorClient
.PutAsync(getWidget, default)
.ConfigureAwait(true);
}

[Fact]
public async Task GetWidgetDataById()
{
Expand Down
2 changes: 1 addition & 1 deletion LogicMonitor.Api/Dashboards/TextWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class TextWidget : Widget, IWidget
{
/// <summary>
/// The Html
/// The Html. Maximum length 409,600 characters.
/// </summary>
[DataMember(Name = "content")]
public string Html { get; set; } = string.Empty;
Expand Down

0 comments on commit 50d4e10

Please sign in to comment.