private async Task <CarServiceModel> CallGetCarViewModelAsync(
            ApplicationDbContext dbContext,
            string carId,
            bool isUserSignIn,
            string userId)
        {
            var signInManager = CommonGetMockMethods.GetSetupedSignInManager(isUserSignIn).Object;
            var userManager   = CommonGetMockMethods.GetSetupedUserManager(userId);
            var service       = this.GetService(dbContext, signInManager, userManager);
            var user          = new Mock <ClaimsPrincipal>().Object;
            var model         = await service.GetCarTestDriveModelById <CarServiceModel>(carId, user);

            return(model);
        }
        private async Task <IEnumerable <CarServiceModel> > CallGetCarsInventoryViewModelAsync(
            ApplicationDbContext dbContext,
            bool isUserSignIn,
            string userId,
            int pageNumber = 1)
        {
            var signInManager = CommonGetMockMethods.GetSetupedSignInManager(isUserSignIn).Object;
            var userManager   = CommonGetMockMethods.GetSetupedUserManager(isUserSignIn ? userId : null);
            var service       = this.GetService(dbContext, signInManager, userManager);
            var user          = new Mock <ClaimsPrincipal>().Object;

            var models = await(await service
                               .GetCarTestDriveModelAsync <CarServiceModel>(dbContext.BaseCars, user, pageNumber))
                         .ToArrayAsync();

            return(models);
        }