Esempio n. 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()));
        }
Esempio n. 2
0
 public void SetUp()
 {
     type = typeof(TestService);
     executionHistory = new ExecutionHistory();
     serviceExecution = new ServiceExecution(executionHistory, new NullWorkEnvironment());
 }
Esempio n. 3
0
 public ServiceExecution(ExecutionHistory executionHistory, WorkEnvironment workEnvironment)
 {
     this.executionHistory = executionHistory;
     this.workEnvironment  = workEnvironment;
 }