예제 #1
0
        public FileService(
            IFileRepository repository,
            IFileFactory factory)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;
        }
예제 #2
0
        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;
        }