public void StubMessageTypeProviderReturnsEventBroadcasterRequestAndResponse() { var provider = new StubMessageTypeProvider(); var reqType = provider.GetRequestType(typeof(EventBroadcaster).FullName); Assert.IsNotNull(reqType); Assert.AreEqual(typeof(EventBroadcaster).FullName, reqType.FullName); var respType = provider.GetResponseType(typeof(EventBroadcaster).FullName); Assert.IsNotNull(respType); Assert.AreEqual(typeof(void).FullName, respType.FullName); }
public void StubMessageTypeProviderReturnsGetVersionRequestAndResponse() { var provider = new StubMessageTypeProvider(); var reqType = provider.GetRequestType(typeof(GetVersion).FullName); Assert.IsNotNull(reqType); Assert.AreEqual(typeof(GetVersion).FullName, reqType.FullName); var respType = provider.GetResponseType(typeof(GetVersion).FullName); Assert.IsNotNull(respType); Assert.AreEqual(typeof(GetVersionResponse).FullName, respType.FullName); }