public void SetUp() { _mockedScreenshotRepository = new Mock <IRepository <Screenshot> >(); _mockedPublishedScreenshotRepository = new Mock <IRepository <PublishedScreenshot> >(); _mockedMapper = new Mock <IMapper>(); _screenshotDeleter = new Infrastructure.Impl.ScreenshotDeleter(_mockedScreenshotRepository.Object, _mockedPublishedScreenshotRepository.Object, _mockedMapper.Object, new Mock <IRepository <PublishedPackage> >().Object); }
public void SetUp() { _mockedScreenshotRepository = new Mock<IRepository<Screenshot>>(); _mockedPublishedScreenshotRepository = new Mock<IRepository<PublishedScreenshot>>(); _mockedMapper = new Mock<IMapper>(); _screenshotDeleter = new Infrastructure.Impl.ScreenshotDeleter(_mockedScreenshotRepository.Object, _mockedPublishedScreenshotRepository.Object, _mockedMapper.Object, new Mock<IRepository<PublishedPackage>>().Object); }
public ScreenshotService(IScreenshotDeleter screenshotDeleter, IWebFaultExceptionCreator webFaultExceptionCreator, IPackageAuthenticator packageAuthenticator, IRepository <Screenshot> screenshotRepository, IServiceInputValidator serviceInputValidator, ILogger logger) : base(webFaultExceptionCreator, logger) { _screenshotDeleter = screenshotDeleter; _screenshotRepository = screenshotRepository; _serviceInputValidator = serviceInputValidator; _packageAuthenticator = packageAuthenticator; }
public ScreenshotService(IScreenshotDeleter screenshotDeleter, IWebFaultExceptionCreator webFaultExceptionCreator, IPackageAuthenticator packageAuthenticator, IRepository<Screenshot> screenshotRepository, IServiceInputValidator serviceInputValidator, ILogger logger) : base(webFaultExceptionCreator, logger) { _screenshotDeleter = screenshotDeleter; _screenshotRepository = screenshotRepository; _serviceInputValidator = serviceInputValidator; _packageAuthenticator = packageAuthenticator; }