public void DeleteComplete() { Patch vco = patchFactory.CreatePatch("vco"); vco.Id = 1; Patch dac = patchFactory.CreatePatch("dac"); dac.Id = 2; processor.CreatePatch(vco); processor.CreatePatch(dac); Connection connection = new Connection { Id = 3, SourcePatch = 1, SourceOutlet = 0, TargetPatch = 2, TargetInlet = 1 }; processor.Connect(connection); vco.AddOutputConnection(connection); dac.AddInputConnection(connection); processor.Delete(vco); processor.Delete(dac); processor.CreatePatch(vco); processor.CreatePatch(dac); processor.Connect(connection); vco.AddOutputConnection(connection); dac.AddInputConnection(connection); TestConnection(messaging.Messages.Count - 5, 3, 2, 0, 0, 1, 1); }