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

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

/// <summary>
///     Fake factory that returns a preconfigured FakeOpcUaClientService.
/// </summary>
public sealed class FakeOpcUaClientServiceFactory : IOpcUaClientServiceFactory
{
    private readonly FakeOpcUaClientService _service;

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

    public IOpcUaClientService Create()
    {
        return _service;
    }
}