示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 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;
 }
示例#4
0
 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;
 }