Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Web/Services
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18224
Modified Files:
WebServiceExporterTests.cs
Log Message:
Allow web service base type to be configurable in WebServiceExporter. Added tests.
Added tests for the same feature in WebServiceProxyFactory (already implementated).
Index: WebServiceExporterTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Web/Services/WebServiceExporterTests.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** WebServiceExporterTests.cs 3 Dec 2007 09:08:07 -0000 1.5
--- WebServiceExporterTests.cs 7 Dec 2007 15:44:56 -0000 1.6
***************
*** 238,241 ****
--- 238,253 ----
}
+ [Test]
+ public void UseCustomWebServiceType()
+ {
+ wse.ObjectName = "UseCustomWebServiceType";
+ wse.TargetName = "noDecoratedService";
+ wse.WebServiceType = typeof(CustomWebService);
+ wse.AfterPropertiesSet();
+
+ Type proxyType = wse.ObjectType;
+ Assert.IsTrue(typeof(CustomWebService).IsAssignableFrom(proxyType));
+ }
+
#region Test classes
***************
*** 263,266 ****
--- 275,282 ----
}
+ public class CustomWebService : WebService
+ {
+ }
+
#endregion
}
|