Example #1
0
        public void RedirectToDashboard_EmptyEmail_ThrowsException()
        {
            // arrange
            var service = new RedirectService();

            // act / assert
            service.ToDashboard("");
        }
Example #2
0
        public void RedirectToDashboard_Redirects()
        {
            // arrange
            var service = new RedirectService();

            // act
            var result = service.ToDashboard("*****@*****.**");

            // assert
            result.Url.Should().Be("~/user/[email protected]");
        }