/// <summary> /// Initializes a new instance of the <see cref="GetNotificationService"/> class. /// </summary> /// <param name="marainServicesTenancy">Marain tenancy services.</param> /// <param name="userNotificationStoreFactory">The user notification store factory.</param> /// <param name="userNotificationMapper">The mapper for the result notification.</param> public GetNotificationService( IMarainServicesTenancy marainServicesTenancy, ITenantedUserNotificationStoreFactory userNotificationStoreFactory, UserNotificationMapper userNotificationMapper) { this.marainServicesTenancy = marainServicesTenancy ?? throw new ArgumentNullException(nameof(marainServicesTenancy)); this.userNotificationStoreFactory = userNotificationStoreFactory ?? throw new ArgumentNullException(nameof(userNotificationStoreFactory)); this.userNotificationMapper = userNotificationMapper ?? throw new ArgumentNullException(nameof(userNotificationMapper)); }
protected override void OnModelCreating(ModelBuilder modelBuilder) { SuggestionMapper.Map(modelBuilder); SuggestionVoteMapper.Map(modelBuilder); SuggestionCommentMapper.Map(modelBuilder); ItemMapper.Map(modelBuilder); ItemPropertyMapper.Map(modelBuilder); NotificationMapper.Map(modelBuilder); UserMapper.Map(modelBuilder); UserNotificationSettingMapper.Map(modelBuilder); UserNotificationMapper.Map(modelBuilder); }