public static UserManager <User> GetSetupedUserManager(string userId)
        {
            var mockedUserManger = GetUserManager();

            CommonSetupMockMethods.SetupMockedUserManagerGetUserId(mockedUserManger, userId);

            return(mockedUserManger.Object);
        }
        public static Mock <UserManager <User> > GetSetupedUserManager(bool isInRole)
        {
            var mockedUserManager = GetUserManager();

            CommonSetupMockMethods.SetupMockedUserManagerIsInRoleAsync(mockedUserManager, isInRole);

            return(mockedUserManager);
        }
        public static Mock <SignInManager <User> > GetSetupedSignInManager(bool isSignIn)
        {
            var userManager         = GetUserManager().Object;
            var mockedSignInManager = GetSignInManager(userManager);

            CommonSetupMockMethods.SetupMockedSignInManagerIsSignIn(mockedSignInManager, isSignIn);

            return(mockedSignInManager);
        }