Ejemplo n.º 1
0
 public void SetUp()
 {
     _ingredientRepositoryMock = new Mock <IIngredientRepository>();
     _ingredientRepositoryMock.Setup(x => x.ExistById(It.IsAny <Guid>()))
     .Returns(true);
     _recipeIngredientFactory = new RecipeIngredient.RecipeIngredientFactory(_ingredientRepositoryMock.Object);
 }
Ejemplo n.º 2
0
 public RecipeMapper(IEventPublisher eventPublisher, IIngredientRepository ingredientRepository)
 {
     _eventPublisher          = eventPublisher;
     _recipeIngredientFactory = new RecipeIngredient.RecipeIngredientFactory(ingredientRepository);
 }
 public FakeRecipeIngredientsFactory(IIngredientRepository ingredientRepository)
 {
     _recipeIngredientFactory = new RecipeIngredient.RecipeIngredientFactory(ingredientRepository);
 }