Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Dec 3, 2024
1 parent a2bbc9b commit 0328aff
Show file tree
Hide file tree
Showing 66 changed files with 18,272 additions and 4,397 deletions.
42 changes: 21 additions & 21 deletions output/csharp/src/Seam.Test/Client/SeamTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
namespace Seam.Test;

using Seam.Model;
using Seam.Client;
using Seam.Model;

public class UnitTest1 : SeamConnectTest
{
[Fact]
public void TestGetDeviceList()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

Assert.NotNull(device);
Expand All @@ -19,8 +19,8 @@ public void TestGetDeviceList()
[Fact]
public async void TestGetDeviceListAsync()
{
var device = (await seam.Devices.ListAsync()).First(
d => d.DeviceType == Device.DeviceTypeEnum.AugustLock
var device = (await seam.Devices.ListAsync()).First(d =>
d.DeviceType == Device.DeviceTypeEnum.AugustLock
);

Assert.NotNull(device);
Expand All @@ -30,8 +30,8 @@ public async void TestGetDeviceListAsync()
[Fact]
public void TestCreateAccessCode()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

var access_code = seam.AccessCodes.Create(deviceId: device.DeviceId, code: "1234");
Expand All @@ -43,8 +43,8 @@ public void TestCreateAccessCode()
[Fact]
public async void TestCreateAccessCodeAsync()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

var access_code = await seam.AccessCodes.CreateAsync(
Expand All @@ -59,8 +59,8 @@ public async void TestCreateAccessCodeAsync()
[Fact]
public void TestLockDoor()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

var action_attempt = seam.Locks.LockDoor(deviceId: device.DeviceId);
Expand All @@ -72,8 +72,8 @@ public void TestLockDoor()
[Fact]
public async void TestLockDoorAsync()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

var action_attempt = await seam.Locks.LockDoorAsync(deviceId: device.DeviceId);
Expand All @@ -91,16 +91,16 @@ public void Test()
[Fact]
public void TestDelete()
{
var device = seam.Devices
.List()
var device = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

Assert.NotNull(device);

seam.Devices.Delete(deviceId: device.DeviceId);

var device2 = seam.Devices
.List()
var device2 = seam
.Devices.List()
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);

Assert.NotEqual(device.DeviceId, device2.DeviceId);
Expand All @@ -109,16 +109,16 @@ public void TestDelete()
[Fact]
public async void TestDeleteAsync()
{
var device = (await seam.Devices.ListAsync()).First(
d => d.DeviceType == Device.DeviceTypeEnum.AugustLock
var device = (await seam.Devices.ListAsync()).First(d =>
d.DeviceType == Device.DeviceTypeEnum.AugustLock
);

Assert.NotNull(device);

await seam.Devices.DeleteAsync(deviceId: device.DeviceId);

var device2 = (await seam.Devices.ListAsync()).First(
d => d.DeviceType == Device.DeviceTypeEnum.AugustLock
var device2 = (await seam.Devices.ListAsync()).First(d =>
d.DeviceType == Device.DeviceTypeEnum.AugustLock
);

Assert.NotEqual(device.DeviceId, device2.DeviceId);
Expand Down
Loading

0 comments on commit 0328aff

Please sign in to comment.