refactor: 枚举移入Models目录,命名空间更新为Rainbow.Entity.Models
大石头 authored at 2026-07-02 12:54:58
378.00 B
RainbowBridge
using Rainbow.Entity;
using Xunit;

namespace XUnitTest.Rainbow.Entity;

public class DeviceTests
{
    [Fact(DisplayName = "Device_Insert")]
    public void Insert()
    {
        var d = new Device { Mac = "AA:BB:" + DateTime.Now.Millisecond.ToString("X4"), IP = "192.168.1.1", HostName = "test", Name = "测试", Enable = true };
        Assert.True(d.Insert() > 0);
    }
}