public void TestGenerateCreateRequestMethod() { var decorator = new CreateRequestMethodServiceDecorator(); CodeMemberMethod method = decorator.GenerateCreateRequestMethod(); Assert.AreEqual(CreateRequestMethodServiceDecorator.CreateRequestMethodName, method.Name); Assert.AreEqual(2, method.Parameters.Count); Assert.AreEqual("System.String", method.Parameters[0].Type.BaseType); Assert.AreEqual("System.String", method.Parameters[1].Type.BaseType); Assert.AreEqual(typeof(IRequest).FullName, method.ReturnType.BaseType); }