Added JsonTester

Added LicenserTester
Added SqliteCacheTester
Updated EnvTester
Updated LoggerTester
This commit is contained in:
2025-02-27 20:24:38 +01:00
parent d2ac9710f0
commit b85fa5a6b9
15 changed files with 232 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EonaCat.Licenser.Nuget" Version="1.0.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LicenserTester", "LicenserTester.csproj", "{CBAAC232-26BD-4168-B621-322C806B343D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CBAAC232-26BD-4168-B621-322C806B343D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBAAC232-26BD-4168-B621-322C806B343D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBAAC232-26BD-4168-B621-322C806B343D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBAAC232-26BD-4168-B621-322C806B343D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7E7E2E90-9289-4D68-A918-A465BE4315AF}
EndGlobalSection
EndGlobal

26
LicenserTester/Program.cs Normal file
View File

@@ -0,0 +1,26 @@

using EonaCat.Json;
using EonaCat.Mocking;
using System;
namespace EonaCat.Tester.Mocking
{
public static class MockTest
{
public static void Main(string[] args)
{
var user = new MockHelper().Generate<User>();
Console.WriteLine(JsonHelper.ToJson(user));
}
}
public class User
{
public string Name { get; set; }
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime BirthDate { get; set; }
public string CompanyName { get; set; }
}
}