public void TestGetNodeValueIsNull() { var dispatchAble = new DispatchableMock(Guid.NewGuid()); var nodeValue = Controller.GetNodeValue(dispatchAble.Id); Assert.Null(nodeValue); }
public void TestGetNodeValues() { var dispatchAble = new DispatchableMock(Guid.NewGuid()); var dispatcher = ServiceProvider.GetRequiredService <IDispatcher>(); dispatcher.DispatchValue(dispatchAble, true); var nodeValue = Controller.GetNodeValue(dispatchAble.Id); Assert.NotNull(nodeValue); Assert.Equal(true, nodeValue); }
public void TestGetCurrentValues() { var dispatchAble = new DispatchableMock(); var dispatcher = ServiceProvider.GetRequiredService <IDispatcher>(); dispatcher.DispatchValue(dispatchAble, false); var currentNodeValues = Controller.GetCurrentNodeValues(); Assert.Contains(dispatchAble.Id, currentNodeValues); Assert.Equal(false, currentNodeValues[dispatchAble.Id]); }