Beispiel #1
0
        private void NetLoadPlugin(IProcess process)
        {
            var          command = new NetLoadCommand(logger, pluginLocator);
            IAsyncResult result  = commandRunner.BeginRun(command, process, null, null);

            // Block while waiting for the netload command to run. This loads the create endpoint command into AutoCAD.
            commandRunner.EndRun(result);
        }
        public void SetUp()
        {
            var logger = MockRepository.GenerateStub <ILogger>();

            fileSystem = MockRepository.GenerateStub <IFileSystem>();
            var pluginLocator = new AcadPluginLocator(logger, fileSystem);

            command = new NetLoadCommand(logger, pluginLocator);
        }