예제 #1
0
        public void get_response_type_negative()
        {
            var method = ReflectionHelper.GetMethod <IUserService>(x => x.Create(null));

            GeneratedServiceType.DetermineResponseType(method)
            .ShouldBeNull();
        }
예제 #2
0
        public void get_response_type_positive()
        {
            var method = ReflectionHelper.GetMethod <IUserService>(x => x.GetUser(null));

            GeneratedServiceType.DetermineResponseType(method)
            .ShouldBe(typeof(User));
        }