public FeedbackController(IFeedbackRepository repository, MapperFactory mapperFactory) { if (repository == null) { throw new ArgumentNullException(nameof(repository)); } if (mapperFactory == null) { throw new ArgumentNullException(nameof(mapperFactory)); } this.repository = repository; this.mapperFactory = mapperFactory; }