public void GetTokensInfoForAccount_Method_Is_Http_Get()
        {
            Assert.IsTrue(AttrHelper.MethodHasAttr <RefreshTokenController, HttpGetAttribute>("GetTokensInfoForAccount"));
            var routeStr = AttrHelper.GetMethodAttrValue <RefreshTokenController, HttpGetAttribute, string>("GetTokensInfoForAccount", x => x.Template);

            Assert.AreEqual("account/{accountId}", routeStr);
        }
        public void Controller_Class_Has_Correct_Route_Attribute()
        {
            Assert.IsTrue(AttrHelper.ClassHasAttr <ShortTokenController, RouteAttribute>());
            var routeStr = AttrHelper.GetClassAttrValue <ShortTokenController, RouteAttribute, string>(x => x.Template);

            Assert.AreEqual("api/v1/rtoken", routeStr);
        }
        public void Create_Method_Is_Http_Post()
        {
            Assert.IsTrue(AttrHelper.MethodHasAttr <ShortTokenController, HttpPostAttribute>("Create"));
            var routeStr = AttrHelper.GetMethodAttrValue <ShortTokenController, HttpPostAttribute, string>("Create", x => x.Template);

            Assert.AreEqual("", routeStr);
        }