Пример #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);
 }
 public RecipeMapper(IEventPublisher eventPublisher, IIngredientRepository ingredientRepository)
 {
     _eventPublisher          = eventPublisher;
     _recipeIngredientFactory = new RecipeIngredient.RecipeIngredientFactory(ingredientRepository);
 }
 public FakeRecipeIngredientsFactory(IIngredientRepository ingredientRepository)
 {
     _recipeIngredientFactory = new RecipeIngredient.RecipeIngredientFactory(ingredientRepository);
 }