Skip to content

Commit

Permalink
bump nextlove generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Oct 30, 2023
1 parent d83d121 commit e0bce0d
Show file tree
Hide file tree
Showing 37 changed files with 2,927 additions and 21 deletions.
11 changes: 9 additions & 2 deletions output/csharp/src/Seam.Test/Client/SeamTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Seam.Test;

using Seam.Model;
using Seam.Client;

public class UnitTest1 : SeamConnectTest
{
Expand All @@ -12,7 +13,7 @@ public void TestGetDeviceList()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

Assert.NotNull(device);
Assert.Equal("Front Door", device.Properties.Name);
Assert.Equal("Fake August Lock 1", device.Properties.Name);
}

[Fact]
Expand All @@ -23,7 +24,7 @@ public async void TestGetDeviceListAsync()
);

Assert.NotNull(device);
Assert.Equal("Front Door", device.Properties.Name);
Assert.Equal("Fake August Lock 1", device.Properties.Name);
}

[Fact]
Expand Down Expand Up @@ -80,4 +81,10 @@ public async void TestLockDoorAsync()
Assert.IsType<ActionAttemptPending>(action_attempt);
Assert.Equal("LOCK_DOOR", (action_attempt as ActionAttemptPending)!.ActionType);
}

[Fact]
public void Test()
{
Assert.Throws<SeamException>(() => seam.AccessCodes.Get(accessCodeId: "nonexistent"));
}
}
2 changes: 1 addition & 1 deletion output/csharp/src/Seam.Test/Seam.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
Loading

0 comments on commit e0bce0d

Please sign in to comment.