public RentalController(IDatabase database, IRolesService rolesService, IMapper mapper, INotificationSystem notificationSystem, IRentalService rentalService, IUserService userService) { this.database = database; this.rolesService = rolesService; this.mapper = mapper; this.notificationSystem = notificationSystem; this.rentalService = rentalService; this.userService = userService; }
public UserController(IDatabase database, INotificationSystem notificationSystem, IMapper mapper, IMessenger messenger, IMeetingSystem meetingSystem, IHubContext <HubClient, IHubClient> hubContext) { this.database = database; this.notificationSystem = notificationSystem; this.mapper = mapper; this.messenger = messenger; this.meetingSystem = meetingSystem; this.hubContext = hubContext; }
public SchoolController(ISchoolService schoolService, IDatabase database, IMapper mapper, IFilesUploader filesUploader, INotificationSystem notificationSystem, IUserService userService, IRolesService rolesService) { this.schoolService = schoolService; this.database = database; this.mapper = mapper; this.filesUploader = filesUploader; this.notificationSystem = notificationSystem; this.userService = userService; this.rolesService = rolesService; this.filesUploader.PreparePathAndUrl("schools"); }
public DiskConfigurator(IFileSystem fileSystem, INotificationSystem notificationSystem = null) { if (fileSystem == null) { throw new ArgumentException(nameof(fileSystem)); } _fileSystem = fileSystem; if (notificationSystem == null) { _notificationSystem = NotificationSystem.Default; } else { _notificationSystem = notificationSystem; } }
public DiskTests() { //Arrange Mock <ICommandSystem> commandSystemMock = new Mock <ICommandSystem>(MockBehavior.Strict); ICommandSystem commandSystem = commandSystemMock.Object; _fileSystemMock = new Mock <IFileSystem>(MockBehavior.Strict); this._fileSystem = _fileSystemMock.Object; commandSystemMock .Setup(cs => cs.GetHomeFolder(It.Is <string>(s => s == "~"))) .Returns("/Users/user"); this._userFolder = commandSystem.GetHomeFolder("~"); _notificationSystemMock = new Mock <INotificationSystem>(MockBehavior.Strict); this._notificationSystem = _notificationSystemMock.Object; }
public ShellConfigurator(IBridgeSystem bridgeSystem, INotificationSystem notificationSystem = null) { if (bridgeSystem == null) { throw new ArgumentException(nameof(bridgeSystem)); } _bridgeSystem = bridgeSystem; if (notificationSystem == null) { _notificationSystem = NotificationSystem.Default; } else { _notificationSystem = notificationSystem; } if (!OS.IsWin()) { Term("chmod +x cmd.sh"); } }
public ShellConfigurator(IBridgeSystem bridgeSystem, INotificationSystem notificationSystem = null) { if (bridgeSystem == null) { throw new ArgumentException(nameof(bridgeSystem)); } _bridgeSystem = bridgeSystem; if (notificationSystem == null) { _notificationSystem = NotificationSystem.Default; } else { _notificationSystem = notificationSystem; } if (!OS.IsWin()) { Term($"chmod +x {Path.Combine(Utility.GetExecutionAssemblyPath(), "cmd.sh")}"); } }
public NotificationController(INotificationSystem notificationSystem, IMapper mapper) { _notificationSystem = notificationSystem; _mapper = mapper; }
public AdminService(IDatabase database, INotificationSystem notificationSystem, IRolesService rolesService) { this.database = database; this.notificationSystem = notificationSystem; this.rolesService = rolesService; }
public DatabaseManager(DataContext context, INotificationSystem notificationSystem) { this.context = context; this.notificationSystem = notificationSystem; }
public MeetingSystem(IDatabase database, INotificationSystem notificationSystem, IEmailSender emailSender) { this.database = database; this.notificationSystem = notificationSystem; this.emailSender = emailSender; }
public SchoolService(IDatabase database, INotificationSystem notificationSystem) { this.database = database; this.notificationSystem = notificationSystem; }