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)); }
public void ServiceCanUsePort() { //Arrange var wrapper = new ClientServiceWrapper <ICarHireService>("baseurl:1669/manage"); //Act var service = wrapper.Service; //Assert; Assert.IsInstanceOfType(service, typeof(ICarHireService)); }
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(); }
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(); }