init: repo

This commit is contained in:
2024-07-04 15:27:19 +08:00
commit a90302f7ba
293 changed files with 18994 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using Chiara.Services;
using Microsoft.Extensions.Logging;
namespace Chiara.Tests.Utils;
public static class MockCreator
{
public static ILogger<T> CreateNoOutputLogger<T>()
{
Mock<ILogger<T>> mock = new();
return mock.Object;
}
public static T CreateEmptyMock<T>() where T : class
{
Mock<T> mock = new();
return mock.Object;
}
}