Complete protocol field associations and verify rendered inventory
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System.Reflection;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Uns;
|
||||
/// <summary>Read-only empty script catalog; every backend operation is refused.</summary>
|
||||
public class ProtocolReadOnlyProxy : DispatchProxy
|
||||
{
|
||||
protected override object? Invoke(MethodInfo? method, object?[]? args) => method?.Name == nameof(IUnsTreeService.LoadScriptsAsync)
|
||||
? Task.FromResult<IReadOnlyList<(string ScriptId, string Display)>>([])
|
||||
: throw new NotSupportedException("No backend operations in protocol fixture: " + method?.Name);
|
||||
}
|
||||
Reference in New Issue
Block a user