public RepositoryService(IRestApiService apiService, IContentConverterService converter, GuardService guard) { Converter = converter ?? throw new ArgumentNullException(nameof(converter)); ApiService = apiService ?? throw new ArgumentNullException(nameof(apiService)); Guard = guard ?? throw new ArgumentNullException(nameof(guard)); }
public ContentConverterService(ConverterTemplates converterTemplates, GuardService guardService) { Templates = converterTemplates ?? throw new ArgumentNullException(nameof(converterTemplates)); Guard = guardService ?? throw new ArgumentNullException(nameof(guardService)); }