private const long _fileSizeLeeway = 1024L * 1024L; // 1MB public SendService( ISendRepository sendRepository, IUserRepository userRepository, IUserService userService, IOrganizationRepository organizationRepository, ISendFileStorageService sendFileStorageService, IPasswordHasher <User> passwordHasher, IPushNotificationService pushService, IReferenceEventService referenceEventService, GlobalSettings globalSettings, IPolicyRepository policyRepository, ICurrentContext currentContext) { _sendRepository = sendRepository; _userRepository = userRepository; _userService = userService; _policyRepository = policyRepository; _organizationRepository = organizationRepository; _sendFileStorageService = sendFileStorageService; _passwordHasher = passwordHasher; _pushService = pushService; _referenceEventService = referenceEventService; _globalSettings = globalSettings; _currentContext = currentContext; }
public SendsController( ISendRepository sendRepository, IUserService userService, ISendService sendService, ISendFileStorageService sendFileStorageService, GlobalSettings globalSettings) { _sendRepository = sendRepository; _userService = userService; _sendService = sendService; _sendFileStorageService = sendFileStorageService; _globalSettings = globalSettings; }
public SendsController( ISendRepository sendRepository, IUserService userService, ISendService sendService, ISendFileStorageService sendFileStorageService, ILogger <SendsController> logger, GlobalSettings globalSettings, ICurrentContext currentContext) { _sendRepository = sendRepository; _userService = userService; _sendService = sendService; _sendFileStorageService = sendFileStorageService; _logger = logger; _globalSettings = globalSettings; _currentContext = currentContext; }
public SendService( ISendRepository sendRepository, IUserRepository userRepository, IUserService userService, IOrganizationRepository organizationRepository, ISendFileStorageService sendFileStorageService, IPasswordHasher <User> passwordHasher, GlobalSettings globalSettings) { _sendRepository = sendRepository; _userRepository = userRepository; _userService = userService; _organizationRepository = organizationRepository; _sendFileStorageService = sendFileStorageService; _passwordHasher = passwordHasher; _globalSettings = globalSettings; }
public SendsControllerTests() { _userService = Substitute.For <IUserService>(); _sendRepository = Substitute.For <ISendRepository>(); _sendService = Substitute.For <ISendService>(); _sendFileStorageService = Substitute.For <ISendFileStorageService>(); _globalSettings = new GlobalSettings(); _logger = Substitute.For <ILogger <SendsController> >(); _sut = new SendsController( _sendRepository, _userService, _sendService, _sendFileStorageService, _logger, _globalSettings ); }