public void ApplyPropertyChangeAttribute() { var parent = railway.Routes.First().Entry; var newValue = Signal.FAILURE; var change = new PropertyChangeAttribute <Signal>(parent.AbsoluteUri, "Signal", newValue); change.Apply(repository); Assert.AreEqual(newValue, parent.Signal); }
public void RecordPropertyChangeAttribute() { var semaphore = railway.Semaphores[0]; var rec = new ModelChangeRecorder(); rec.Start(railway); semaphore.Signal = Signal.FAILURE; var expected = new PropertyChangeAttribute <Signal>(semaphore.AbsoluteUri, "Signal", Signal.FAILURE); var actual = rec.GetModelChanges().Changes[0]; Assert.AreEqual(expected, actual); }
public void SerializePropertyChangeAttribute() { var change = new PropertyChangeAttribute<Signal>(uri, property, Signal.FAILURE); SerializeAndAssert(change); }
public void SerializePropertyChangeAttribute() { var change = new PropertyChangeAttribute <Signal>(uri, property, Signal.FAILURE); SerializeAndAssert(change); }
public void ApplyPropertyChangeAttribute() { var parent = railway.Routes.First().Entry; var newValue = Signal.FAILURE; var change = new PropertyChangeAttribute<Signal>(parent.AbsoluteUri, "Signal", newValue); change.Apply(repository); Assert.AreEqual(newValue, parent.Signal); }
public void RecordPropertyChangeAttribute() { var semaphore = railway.Semaphores[0]; var rec = new ModelChangeRecorder(); rec.Start(railway); semaphore.Signal = Signal.FAILURE; var expected = new PropertyChangeAttribute<Signal>(semaphore.AbsoluteUri, "Signal", Signal.FAILURE); var actual = rec.GetModelChanges().Changes[0]; Assert.AreEqual(expected, actual); }