Beispiel #1
0
        public void SetUp()
        {
            _zlib                 = ZipComponentFactory.CreateZipComponent(ZipComponentType.Zlib);
            _clearFilePath        = "c:\\ZlibTestCase_clear.txt";
            _compressedFilePath   = "c:\\ZlibTestCase_compressed.txt";
            _unCompressedFilePath = "c:\\ZlibTestCase_unCompressed.txt";

            var lines = Enumerable.Range(0, 100).ToList()
                        .Select(x => "Mehmet Zahir Solak").ToArray();

            File.WriteAllLines(_clearFilePath, lines);
        }
Beispiel #2
0
        public Collection(
            ICompareComponent compare,
            ICreationComponent creator,
            IDelegationComponent delegation,
            IFilterComponent filter,
            IMapReduceComponent mapReduce,
            IPartitionComponent partitioner,
            ISetComponent set,
            IZipComponent zip,
            IUnZipComponent unzip
            )
        {
            if (compare == null)
            {
                throw new ArgumentNullException("compare");
            }

            if (creator == null)
            {
                throw new ArgumentNullException("creator");
            }

            if (delegation == null)
            {
                throw new ArgumentNullException("delegation");
            }

            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            if (mapReduce == null)
            {
                throw new ArgumentNullException("mapReduce");
            }

            if (partitioner == null)
            {
                throw new ArgumentNullException("partitioner");
            }

            if (set == null)
            {
                throw new ArgumentNullException("set");
            }

            if (zip == null)
            {
                throw new ArgumentNullException("zip");
            }

            if (unzip == null)
            {
                throw new ArgumentNullException("unzip");
            }

            _compare     = compare;
            _creator     = creator;
            _delegation  = delegation;
            _filter      = filter;
            _mapReduce   = mapReduce;
            _partitioner = partitioner;
            _set         = set;
            _zip         = zip;
            _unzip       = unzip;
        }