using ZB.MOM.WW.OtOpcUa.Client.Shared;

namespace ZB.MOM.WW.OtOpcUa.Client.CLI.Tests.Fakes;

/// <summary>
///     Fake factory that returns a pre-configured <see cref="FakeOpcUaClientService" /> for testing.
/// </summary>
public sealed class FakeOpcUaClientServiceFactory : IOpcUaClientServiceFactory
{
    private readonly FakeOpcUaClientService _service;

    public FakeOpcUaClientServiceFactory(FakeOpcUaClientService service)
    {
        _service = service;
    }

    public IOpcUaClientService Create()
    {
        return _service;
    }
}