generated from wenjy/Sln.Iot
init
parent
e988a202d7
commit
be8880f11d
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CFX.CFXSDK" Version="2.0.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Serilog\Sln.Iot.Serilog.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="HslCommunication">
|
||||||
|
<HintPath>..\DLL\HslCommunication.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Binary file not shown.
@ -1,9 +0,0 @@
|
|||||||
using Sln.Iot.Model.dao;
|
|
||||||
using Sln.Iot.Repository.service.@base;
|
|
||||||
|
|
||||||
namespace Sln.Iot.Repository.service;
|
|
||||||
|
|
||||||
public interface IRecordAlarmDataService:IBaseService<RecordAlarmData>
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||||
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Business\Sln.Iot.Business.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.CFX\Sln.Iot.CFX.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Common\Sln.Iot.Common.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Config\Sln.Iot.Config.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.PLC\Sln.Iot.PLC.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Repository\Sln.Iot.Repository.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Serilog\Sln.Iot.Serilog.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot.Socket\Sln.Iot.Socket.csproj" />
|
||||||
|
<ProjectReference Include="..\Sln.Iot\Sln.Iot.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
global using Xunit;
|
||||||
|
global using Sln.Iot.Repository.dao;
|
||||||
|
using Sln.Iot.Repository;
|
||||||
|
|
||||||
|
namespace Sln.Iot.Test
|
||||||
|
{
|
||||||
|
public class UnitTest1
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Test1()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Test2()
|
||||||
|
{
|
||||||
|
List<TrayRfidBinding> testDatas = new List<TrayRfidBinding>()
|
||||||
|
{
|
||||||
|
new TrayRfidBinding()
|
||||||
|
{
|
||||||
|
GUID = Guid.NewGuid().ToString(),
|
||||||
|
TrayCode = "Tray001",
|
||||||
|
ProductionCode = "ProdA",
|
||||||
|
},
|
||||||
|
new TrayRfidBinding()
|
||||||
|
{
|
||||||
|
GUID = Guid.NewGuid().ToString(),
|
||||||
|
TrayCode = "Tray002",
|
||||||
|
ProductionCode = "ProdB",
|
||||||
|
},
|
||||||
|
new TrayRfidBinding()
|
||||||
|
{
|
||||||
|
GUID = Guid.NewGuid().ToString(),
|
||||||
|
TrayCode = "Tray002",
|
||||||
|
ProductionCode = "ProdC",
|
||||||
|
},
|
||||||
|
new TrayRfidBinding()
|
||||||
|
{
|
||||||
|
GUID = Guid.NewGuid().ToString(),
|
||||||
|
TrayCode = "Tray002",
|
||||||
|
ProductionCode = "ProdD",
|
||||||
|
},
|
||||||
|
new TrayRfidBinding()
|
||||||
|
{
|
||||||
|
GUID = Guid.NewGuid().ToString(),
|
||||||
|
TrayCode = "Tray003",
|
||||||
|
ProductionCode = "ProdE",
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var res = SQLiteHelper<TrayRfidBinding>.Instance.DeleteRange("Tray001");
|
||||||
|
Assert.Equal(5, res.Count);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue