public FileService( IFileRepository repository, IFileFactory factory) { repository.CheckArgumentIsNull(nameof(repository)); _repository = repository; factory.CheckArgumentIsNull(nameof(factory)); _factory = factory; }
public AdminSliderService( IPostFactory postFactory, IFileFactory fileFactory, IPostFileFactory postFileFactory) { postFactory.CheckArgumentIsNull(nameof(postFactory)); _postFactory = postFactory; fileFactory.CheckArgumentIsNull(nameof(fileFactory)); _fileFactory = fileFactory; postFileFactory.CheckArgumentIsNull(nameof(postFileFactory)); _postFileFactory = postFileFactory; }