public FavoriteService(ILoggerWrapper <FavoriteService> logger, IFavoriteRepository favoriteRepository, IProductRepository productRepository, FavoriteResponseMessages messages) { _logger = logger; _favoriteRepository = favoriteRepository; _productRepository = productRepository; _messages = messages; }
public FavoriteServiceFixture() { faker = new FakerProvider(); mockLogger = new Mock <ILoggerWrapper <FavoriteService> >(); mockFavoriteRepository = new Mock <IFavoriteRepository>(); mockProductRepository = new Mock <IProductRepository>(); messages = faker.CreateFakerFavoriteResponseMessages(); SUT = new FavoriteService(mockLogger.Object, mockFavoriteRepository.Object, mockProductRepository.Object, messages); }