Пример #1
0
        public async Task Redirect()
        {
            var token = _testDataProvider.GetToken();
            var url   = _testDataProvider.GetUrl();

            var result = await _linkController.RedirectLink(token);

            var okResult = result as RedirectResult;

            Assert.That(okResult, Is.Not.Null);
            Assert.That(okResult.Location.AbsoluteUri, Is.EqualTo(url));
        }