Changeset 5599 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/Mocks/MockServiceLocator.cs
- Timestamp:
- 03/03/11 14:18:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/Mocks/MockServiceLocator.cs
r5526 r5599 1 1 using System; 2 2 using HeuristicLab.Services.Hive; 3 using HeuristicLab.Services.Hive.Common.ServiceContracts;4 3 5 4 namespace HeuristicLab.Clients.Hive.Tests { 6 public class MockServiceLocator : IServiceLocator{5 public class MockServiceLocator { 7 6 private string username; 8 7 public string Username { … … 17 16 } 18 17 19 public IHiveService GetService() { 20 return new HiveService(); 18 public HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService GetService() { 19 HiveService service = new HeuristicLab.Services.Hive.HiveService(); 20 return service; 21 21 } 22 22 23 public void CallHiveService(Action< IHiveService> call) {23 public void CallHiveService(Action<HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService> call) { 24 24 call(GetService()); 25 25 } 26 26 27 public T CallHiveService<T>(Func< IHiveService, T> call) {27 public T CallHiveService<T>(Func<HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService, T> call) { 28 28 return call(GetService()); 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.