public void get_response_type_negative() { var method = ReflectionHelper.GetMethod <IUserService>(x => x.Create(null)); GeneratedServiceType.DetermineResponseType(method) .ShouldBeNull(); }
public void get_response_type_positive() { var method = ReflectionHelper.GetMethod <IUserService>(x => x.GetUser(null)); GeneratedServiceType.DetermineResponseType(method) .ShouldBe(typeof(User)); }