Skip to content

Commit

Permalink
dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed Oct 11, 2024
1 parent e3d0591 commit 13e3e5f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/HueApi.ConsoleSample/HueApi.ConsoleSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/HueApi.Tests/HueApi.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
23 changes: 22 additions & 1 deletion src/HueApi.Tests/LightTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using HueApi.BridgeLocator;
using HueApi.ColorConverters.Original.Extensions;
using HueApi.Models;
using HueApi.Models.Requests;
Expand Down Expand Up @@ -108,6 +107,28 @@ public async Task ChangeLightColor()

}

[TestMethod]
public async Task TestChangeLightColor()
{
var all = await localHueClient.GetLightsAsync();
var id = all.Data.First().Id;
var rgbColorHue = new HueApi.ColorConverters.RGBColor(10, 10, 10);

// Create the light update command
var req = new UpdateLight()
.TurnOn()
.SetColor(rgbColorHue);

var result = localHueClient.UpdateLightAsync(id, req).Result;

Assert.IsNotNull(result);
Assert.IsFalse(result.HasErrors);

Assert.IsTrue(result.Data.Count == 1);
Assert.AreEqual(id, result.Data.First().Rid);

}

[TestMethod]
public async Task ChangeGradientLightColor()
{
Expand Down
4 changes: 2 additions & 2 deletions src/HueDiagnostics/HueDiagnostics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<ItemGroup>
<PackageReference Include="CompareNETObjects" Version="4.83.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 13e3e5f

Please sign in to comment.