onebeyond/onebeyond-studio-core

View on GitHub
src/OneBeyond.Studio.Application.SharedKernel.Tests/IntegrationEvents/TestableScopedItem.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System;
using EnsureThat;

namespace OneBeyond.Studio.Application.SharedKernel.Tests.IntegrationEvents;

internal sealed class TestableScopedItem
{
    public Type? HandlerType { get; private set; }

    public void SetHandlerType(Type handlerType)
    {
        EnsureArg.IsNotNull(handlerType, nameof(handlerType));
        Ensure.Bool.IsTrue(HandlerType is null);

        HandlerType = handlerType;
    }
}