Example #1
0
        public void ServiceCanBeFoundViaTypeAndName()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper <IDataSourceService>("baseurl", "source");

            //Act
            var service = wrapper.Service;

            //Assert;
            Assert.IsInstanceOfType(service, typeof(IDataSourceService));
        }
        public void ServiceCanBeFoundViaType()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper<ICarHireService>("baseurl/manage");

            //Act
            var service = wrapper.Service;
            
            //Assert;
            Assert.IsInstanceOfType(service, typeof(ICarHireService));
        }
Example #3
0
        public void ServiceCanUsePort()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper <ICarHireService>("baseurl:1669/manage");

            //Act
            var service = wrapper.Service;

            //Assert;
            Assert.IsInstanceOfType(service, typeof(ICarHireService));
        }
Example #4
0
        public void WrapperMustThrowExceptionWhenServiceIsNotFound()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper <Object>();

            //Act
            var service = wrapper.Service;

            //Assert;
            Assert.IsNull(service);
            Assert.Fail();
        }
Example #5
0
        public void WrapperMustThrowExceptionWhenInCorrectServiceIsFound()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper <Object>("baseurl", "source");

            //Act
            var service = wrapper.Service;

            //Assert;
            Assert.IsNull(service);
            Assert.Fail();
        }
        public void ServiceCanBeFoundViaTypeAndName()
        {
            //Arrange
            var wrapper = new ClientServiceWrapper<IDataSourceService>("baseurl", "source");

            //Act
            var service = wrapper.Service;
            
            //Assert;
            Assert.IsInstanceOfType(service, typeof(IDataSourceService));
        }
 public void WrapperMustThrowExceptionWhenServiceIsNotFound()
 {
     //Arrange
     var wrapper = new ClientServiceWrapper<Object>();
     
     //Act
     var service = wrapper.Service;
     
     //Assert;
     Assert.IsNull(service);
     Assert.Fail();
 }
 public void WrapperMustThrowExceptionWhenInCorrectServiceIsFound()
 {
     //Arrange
     var wrapper = new ClientServiceWrapper<Object>("baseurl", "source");
     
     //Act
     var service = wrapper.Service;
     
     //Assert;
     Assert.IsNull(service);
     Assert.Fail();
 }