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

            return(new ServiceExecution(executionHistory, workEnvironment ?? new NullWorkEnvironment()));
        }
Example #2
0
 public void SetUp()
 {
     type = typeof(TestService);
     executionHistory = new ExecutionHistory();
     serviceExecution = new ServiceExecution(executionHistory, new NullWorkEnvironment());
 }
Example #3
0
 public ServiceExecution(ExecutionHistory executionHistory, WorkEnvironment workEnvironment)
 {
     this.executionHistory = executionHistory;
     this.workEnvironment  = workEnvironment;
 }