Ejemplo n.º 1
0
        public AddWatcherToTicket()
        {
            var mapper     = GetMapper();
            var loggerMock = GetLoggerMock <notificationService>();
            var loggerSut  = GetLoggerMock <NotificationController>();
            var repository = new WatcherRepository(new DbContext(GetConnectionString()));

            _unitOfWork = new UnitOfWork(repository);
            var emailSender         = new Mock <IEmailSender>();
            var notificationService = new notificationService(_unitOfWork, emailSender.Object, mapper, loggerMock.Object);

            _sut = new NotificationController(notificationService, mapper, loggerSut.Object);
        }
Ejemplo n.º 2
0
 public WatcherController(WatcherRepository watcherRepository, FileSystemWatcherUtility fileSystemWatcherUtil)
 {
     this.watcherRepo           = watcherRepository;
     this.fileSystemWatcherUtil = fileSystemWatcherUtil;
 }
Ejemplo n.º 3
0
 public FileSystemWatcherUtility(WatcherRepository watcherRepo, SymbolicLinkRepository symbolicLinkRepo, IHubContext <FileSystemHub> fileSystemHubContext)
 {
     this.watcherRepo          = watcherRepo;
     this.symbolicLinkRepo     = symbolicLinkRepo;
     this.fileSystemHubContext = fileSystemHubContext;
 }