Beispiel #1
0
 /// <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);
        }
Beispiel #4
0
 private void CreateModSicChannel()
 {
     if (this.ModSicChannel == null)
     {
         var binding  = ServiceConfigurationHelper.CreateWsHttpBinding();
         var endpoint = ServiceConfigurationHelper.CreateEndpointAddressFromURL();
         this.ModSicChannel = new ChannelFactory <ICollectService>(binding, endpoint).CreateChannel();
     }
 }
Beispiel #5
0
 /// <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;
 }
Beispiel #6
0
 private void CreateModSicChannel()
 {
     if (this.ModSicChannel == null)
     {
         var binding = ServiceConfigurationHelper.CreateWsHttpBinding();
         var endpoint = ServiceConfigurationHelper.CreateEndpointAddressFromURL();
         this.ModSicChannel = new ChannelFactory<ICollectService>(binding, endpoint).CreateChannel();
     }
 }
Beispiel #7
0
 public CollectManager(ICollectService service) => _service = service;
 public CollectController()
 {
     service = new CollectService();
 }
 public FnCheckpoint(ICollectService collectionService, ICheckPointService seedService)
 {
     this.collectionService = collectionService;
     this.checkpointService = seedService;
 }