Example #1
0
        public async Task <IActionResult> Help()
        {
            IAssistent assistent = new ManualAssistent();

            ViewBag.RequestInfo = await assistent.RequestAssistanceAsync(HttpContext.Request.Path);

            return(View());
        }
Example #2
0
        public void TestException()
        {
            var manualAssistent = new ManualAssistent();

            Assert.AreEqual(true, IsAllowedMessage(manualAssistent.RequestAssistanceAsync("User").Result));
        }