Пример #1
0
 public FavoriteService(ILoggerWrapper <FavoriteService> logger, IFavoriteRepository favoriteRepository, IProductRepository productRepository, FavoriteResponseMessages messages)
 {
     _logger             = logger;
     _favoriteRepository = favoriteRepository;
     _productRepository  = productRepository;
     _messages           = messages;
 }
Пример #2
0
 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);
 }