9695ec8c51
* Show code coverage for dev * SpeckleHttp coverage and moved base stuff around * add SpeckleHttpTests
18 lines
496 B
C#
18 lines
496 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Moq;
|
|
|
|
namespace Speckle.Sdk.Testing;
|
|
|
|
[ExcludeFromCodeCoverage]
|
|
public abstract class MoqTest : IDisposable
|
|
{
|
|
protected MoqTest() => Repository = new(MockBehavior.Strict);
|
|
|
|
public void Dispose() => Repository.VerifyAll();
|
|
|
|
protected MockRepository Repository { get; private set; } = new(MockBehavior.Strict);
|
|
|
|
protected Mock<T> Create<T>(MockBehavior behavior = MockBehavior.Strict)
|
|
where T : class => Repository.Create<T>(behavior);
|
|
}
|