public void VoteFoodTruck_Post_UserWithPriorUpvotePreference_UpVote_Validate_ToggleNoPreference()
        {
            // Arrange
            List<Models.Preference.PreferenceData> testPreferences = new List<Preference.PreferenceData>()
            {
                new Preference.PreferenceData() {
                    userid = "TestUser1",
                    truckname = "TestTruck2",
                    preference = 1  // Prior Upvote
                },
            };
            var user = new MockCurrentUser();
            user.setUserId("TestUser1");
            var controller = new HomeController(
                new MockPreferenceRepository(testPreferences),
                new MockTruckDataRepository(),
                user);

            // Act
            JsonResult result = controller.VoteFoodTruck("TestTruck2", "1"); // New Upvote

            // Assert
            dynamic jsonResult = result.Data;
            //var pins = result.Data as List<Models.TruckPushpinInfo>;
            Assert.IsNotNull(jsonResult);
            Assert.AreEqual(
                true,
                jsonResult.success);
            Assert.AreEqual(
                0,
                jsonResult.newIconColor);
        }
        public void VoteFoodTruck_Post_UserNoPriorPreference_UpVote_Validate_NewUpvote()
        {
            // Arrange
            var user = new MockCurrentUser();
            user.setUserId("TestUser1");
            var controller = new HomeController(
                new MockPreferenceRepository(),
                new MockTruckDataRepository(),
                user);

            // Act
            JsonResult result = controller.VoteFoodTruck("TestTruck2", "1"); // New Upvote

            // Assert
            dynamic jsonResult = result.Data;
            //var pins = result.Data as List<Models.TruckPushpinInfo>;
            Assert.IsNotNull(jsonResult);
            Assert.AreEqual(
                true,
                jsonResult.success);
            Assert.AreEqual(
                1,
                jsonResult.newIconColor);
        }