Example #1
0
 public PepinoScenario(Guid projectId, string projectName, string storyName, string scenarioName, PepinoConfiguration config)
 {
     _projectId = projectId;
     _projectName = projectName;
     _storyName = storyName;
     _scenarioName = scenarioName;
     _config = config;
     _result = new PepinoTestResult
               {
                   Status = TestStatus.Pending
               };
 }
Example #2
0
 public PepinoTestResult Run()
 {
     try
     {
         return new PepinoTestResult {Status = _config.Client.Run(_projectName)};
     }
     catch (ProjectDoesNotExistException ex)
     {
         var result = new PepinoTestResult {Status = TestStatus.ConfigurationError, Message = ex.Message};
         _config.Log.WriteLine("Failed: {0} -- {1}", result.Status, result.Message);
         return result;
     }
 }