public void UpdateExistingContent_ShouldReturnTrue() { //Arrange VehicleContent content = new VehicleContent(); VehicleContent _listofContent = new VehicleContent(); //ACT bool updatedResult = _listofContent.Equals(content); //ASSERT Assert.IsTrue(updatedResult); }
public void RemoveVehicle_Test() { //Arrange VehicleContent content = new VehicleContent(); VehicleContent _listofContent = new VehicleContent(); //ACT bool removeResult = _listofContent.Equals(content); //ASSERT Assert.IsTrue(removeResult); }
public void addVehicle_Test() { //Arrange VehicleContent content = new VehicleContent(); VehicleContent _listofContent = new VehicleContent(); //ACT bool addResult = _listofContent.Equals(content); //Assert Assert.IsTrue(addResult); }
private void UpdateExistingcontent() { //Display all Content DisplayAllContent(); // Ask for CarName needed to update Console.WriteLine("Enter the carNAme fo the content you are wanting to update"); //Get that CarName string oldCarName = Console.ReadLine(); // build a new object VehicleContent newContent = new VehicleContent(); //CarName Console.WriteLine("Enter the title for the content by vehicle type Gas, hybrid,or electric:"); string vehicle = Console.ReadLine(); int vehicleasInt = int.Parse(vehicle); newContent.TypeofVehicle = (VehicleType)vehicleasInt; //PriceValue Console.WriteLine("Enter the value of car content you are looking for (20,000, 30,000, 40,000)"); newContent.PriceValue = int.Parse(Console.ReadLine()); //Information Console.WriteLine("Enter the description for the content you would like."); newContent.Information = Console.ReadLine(); //Vehicletype Console.WriteLine("Enter the car content by vehicle type you would like (Tesla, Honda,or ToyotaPrius)(Y/N)? "); string CarName = Console.ReadLine().ToLower(); int CarNameAsInt = int.Parse(CarName); newContent.CarName = (CarName)CarNameAsInt; if (CarName == "y") { Console.WriteLine("List of VehicleTypes with CarNames/n" + "1.GasCar" + "2.ElectricCar" + "3.Hybridcar/n" + "4.Tesla" + "5.Honda" + "6.Toyota Priue"); _contentRepo.AddContentToList(newContent); } }