public void CreatePatch() { Patch patch = new Patch() { Id = 1, Code = "vco", Values = new SortedList <string, float>() }; processor.CreatePatch(patch); Assert.AreEqual(1, messaging.Messages.Count); Assert.AreEqual("pd-" + testPatch, messaging.Messages[0].Receiver); Assert.AreEqual("x_vco", messaging.Messages[0].Atoms[2].Value); Assert.AreEqual("x_vco_1", messaging.Messages[0].Atoms[3].Value); }
public Patch CreatePatch(string patchCode) { Patch patch = patchFactory.CreatePatch(patchCode); patchGraphManager.AddPatch(patch); processor.CreatePatch(patch); return(patch); }