/// <summary> /// It creates a new proxy for modSIC Service access. /// </summary> /// <param name="modSicServiceURL">modSIC Service URL.</param> /// <param name="collectServiceMock">Only for unit tests purpose. Do not use this in production code.</param> public ModSicServiceProxy(string modSicServiceURL, ICollectService collectServiceMock = null) { this.ServiceConfigurationHelper = new ServiceConfigurationHelper(modSicServiceURL); if (collectServiceMock != null) { this.ModSicChannel = collectServiceMock; } }
public ModSicServiceProxyTests() { var mocks = new MockRepository(); this.FakeCollectService = mocks.DynamicMock<ICollectService>(); mocks.ReplayAll(); this.ModSicProxy = new ModSicServiceProxy(FAKE_MODSIC_URL, FakeCollectService); }
public ModSicServiceProxyTests() { var mocks = new MockRepository(); this.FakeCollectService = mocks.DynamicMock <ICollectService>(); mocks.ReplayAll(); this.ModSicProxy = new ModSicServiceProxy(FAKE_MODSIC_URL, FakeCollectService); }
private void CreateModSicChannel() { if (this.ModSicChannel == null) { var binding = ServiceConfigurationHelper.CreateWsHttpBinding(); var endpoint = ServiceConfigurationHelper.CreateEndpointAddressFromURL(); this.ModSicChannel = new ChannelFactory <ICollectService>(binding, endpoint).CreateChannel(); } }
/// <summary> /// It creates a new proxy for modSIC Service access. /// </summary> /// <param name="modSicServiceURL">modSIC Service URL.</param> /// <param name="collectServiceMock">Only for unit tests purpose. Do not use this in production code.</param> public ModSicServiceProxy(string modSicServiceURL, ICollectService collectServiceMock = null) { this.ServiceConfigurationHelper = new ServiceConfigurationHelper(modSicServiceURL); if (collectServiceMock != null) this.ModSicChannel = collectServiceMock; }
private void CreateModSicChannel() { if (this.ModSicChannel == null) { var binding = ServiceConfigurationHelper.CreateWsHttpBinding(); var endpoint = ServiceConfigurationHelper.CreateEndpointAddressFromURL(); this.ModSicChannel = new ChannelFactory<ICollectService>(binding, endpoint).CreateChannel(); } }
public CollectManager(ICollectService service) => _service = service;
public CollectController() { service = new CollectService(); }
public FnCheckpoint(ICollectService collectionService, ICheckPointService seedService) { this.collectionService = collectionService; this.checkpointService = seedService; }