Exemplo n.º 1
0
        public void Execute(object parameter)
        {
            var kataAttempt = parameter as KataAttempt;

            if (kataAttempt == null)
            {
                return;
            }
            var launchAction = _kataArchive.GenerateLaunchActionFor(kataAttempt.Location);

            launchAction.Invoke();
        }
Exemplo n.º 2
0
        private IKataAttempt GenerateAndLaunchKata(IKataArchive kataArchive, KataName selectedKata)
        {
            var kataAttempt = kataArchive.GenerateSolutionForAttempt(selectedKata);

            if (kataAttempt == null)
            {
                _traceLoggerHelper.LogToUi("Failed to find solution template for [ " + kataArchive + " ]");
                return(null);
            }

            var launchAction = kataArchive.GenerateLaunchActionFor(kataAttempt.Location);

            launchAction.Invoke();
            _eventAggregator.Publish <ShowMainWindowEvent>();
            return(kataAttempt);
        }