Exemplo n.º 1
0
        private AdvancedProtocol createAdvancedProtocol(ApplicationType applicationType)
        {
            var protocol = _objectBaseFactory.Create <AdvancedProtocol>();

            protocol.Root     = _objectBaseFactory.Create <IRootContainer>();
            protocol.TimeUnit = _displayUnitRetriever.PreferredUnitFor(_dimensionRepository.Time);

            var schema = _schemaFactory.CreateWithDefaultItem(applicationType, protocol);

            protocol.AddSchema(schema);
            return(protocol);
        }
Exemplo n.º 2
0
        public IPKSimCommand AddSchemaTo(AdvancedProtocol protocol)
        {
            var newSchema = _schemaFactory.CreateWithDefaultItem(ApplicationTypes.IntravenousBolus, protocol);

            return(new AddSchemaToProtocolCommand(newSchema, protocol, _executionContext).Run(_executionContext));
        }