public UnitTestMainFood()
        {
            mainFoodRepo    = new Mock <IMainFoodRepositories>();
            allergensRepo   = new Mock <IAllergensRepositories>();
            IngredientsRepo = new Mock <IIngredientsRepositories>();
            mainFoodService = new MainFoodServices(mainFoodRepo.Object,
                                                   IngredientsRepo.Object,

                                                   allergensRepo.Object
                                                   );
        }
示例#2
0
 public MainFoodController(IMainFoodServices mainFoodService)
 {
     _mainFoodService = mainFoodService;
 }