Example #1
0
        public void Delete()
        {
            Patch vco = new Patch()
            {
                Id     = 1,
                Code   = "vco",
                Values = new SortedList <string, float>()
            };
            Patch dac = new Patch()
            {
                Id     = 2,
                Code   = "dac",
                Values = new SortedList <string, float>()
            };
            Connection connection = new Connection()
            {
                Id           = 3,
                SourcePatch  = 1,
                SourceOutlet = 0,
                TargetPatch  = 2,
                TargetInlet  = 1
            };

            processor.CreatePatch(vco);
            processor.CreatePatch(dac);
            processor.Connect(connection);
            processor.Delete(vco);
            Assert.AreEqual("pd-" + testPatch, messaging.Messages[6].Receiver);
            Assert.AreEqual("x_vco_1", messaging.Messages[6].Atoms[0].Value);
        }
Example #2
0
 public async Task Delete(int id)
 {
     await _eventProcessor.Delete(id);
 }
 public void Delete(Patch patch)
 {
     patchGraphManager.RemovePatch(patch.Id);
     processor.Delete(patch);
 }
 public async Task Delete(int id)
 {
     await _scheduleProcessor.Delete(id);
 }
 public async Task Delete(int id)
 {
     await _placeProcessor.Delete(id);
 }