public void Then_Returns_Expected_Results()
        {
            Result.Should().NotBeNull();
            Result.Should().BeOfType(typeof(ViewResult));

            var viewResult = Result as ViewResult;

            viewResult.Model.Should().BeOfType(typeof(RejoinRegistrationViewModel));

            var model = viewResult.Model as RejoinRegistrationViewModel;

            model.Should().NotBeNull();

            model.ProfileId.Should().Be(mockresult.ProfileId);
            model.CanRejoin.Should().BeNull();

            var backLink = model.BackLink;

            backLink.RouteName.Should().Be(RouteConstants.ReregisterCannotSelectSameCore);
            backLink.RouteAttributes.Count.Should().Be(2);
            backLink.RouteAttributes.TryGetValue(Constants.ProfileId, out string routeValue);
            routeValue.Should().Be(mockresult.ProfileId.ToString());
            backLink.RouteAttributes.TryGetValue(Constants.IsChangeMode, out string routeValueChange);
            routeValueChange.Should().Be(IsChangeMode.ToString().ToLowerInvariant());
        }
        public void Then_Redirected_To_ReregisterCannotSelectSameCore()
        {
            var route     = Result as RedirectToRouteResult;
            var routeName = route.RouteName;

            routeName.Should().Be(RouteConstants.ReregisterCannotSelectSameCore);
            route.RouteValues[Constants.ProfileId].Should().Be(ViewModel.ProfileId);
            route.RouteValues[Constants.IsChangeMode].Should().Be(IsChangeMode.ToString().ToLowerInvariant());
        }