public void GetCuisines_ShoulfUpdateCuisinesListInRestaurant()
{
ClassifyResult result1 = new ClassifyResult()
{
Result = "falafel",
Propability = 0.86
};
ClassifyResult result2 = new ClassifyResult()
{
Result = "shawarma",
Propability = 0.74
};
List<ClassifyResult> restultsList = new List<ClassifyResult>(){ result1, result2 };
RestaurantBasicData rest = new RestaurantBasicData()
{
Name = "Test restaurant"
};
GetCuisinesByClassifierResults getCuisines = new GetCuisinesByClassifierResults(rest, restultsList);
var resultRest = getCuisines.GetCuisines();
Assert.IsNotNull(resultRest.Cuisines);
Assert.IsNotNull(rest.Cuisines);
Assert.IsTrue(resultRest.Cuisines.Count == 2);
Assert.IsTrue(rest.Cuisines.Count == 2);
}