init: repo
This commit is contained in:
20
Chiara/Chiara.Tests/Utils/MockCreator.cs
Normal file
20
Chiara/Chiara.Tests/Utils/MockCreator.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user