public static ServiceExecution Create(WorkEnvironment workEnvironment)
        {
            if (!RepositoryAppXmlConfiguration.Instance.UseHistory)
            {
                return(new NullServiceExecution());
            }
            ExecutionHistory executionHistory = ExecutionHistory.Create();

            return(new ServiceExecution(executionHistory, workEnvironment ?? new NullWorkEnvironment()));
        }
 public ServiceExecution(ExecutionHistory executionHistory, WorkEnvironment workEnvironment)
 {
     this.executionHistory = executionHistory;
     this.workEnvironment  = workEnvironment;
 }
 public void SetUp()
 {
     @class           = new Class(typeof(TestService));
     executionHistory = new ExecutionHistory();
     serviceExecution = new ServiceExecution(executionHistory, new NullWorkEnvironment());
 }