Exemplo n.º 1
0
        public void Operation_name_without_portname()
        {
            var sut = new Create_task();

            var operations = new Dictionary <string, IOperation>();
            var operation  = new Operation("y", null);

            operations.Add(operation.Name, operation);
            sut.Inject(operations);

            Task result = null;

            sut.Result += _ => result = _;

            var msg = new Message("y", null);

            sut.Process(msg);

            Assert.AreSame(msg, result.Message);
            Assert.AreSame(operation, result.Operation);
        }
Exemplo n.º 2
0
 public void Inject(List <IStream> streams, Dictionary <string, IOperation> operations)
 {
     _map.Inject(streams);
     _create.Inject(operations);
 }