Exemple #1
0
        public ICompressResult Compress(ExpensiveData data)
        {
            Random        rnd          = new Random((int)(DateTime.Now.Ticks & 0x0FFFFFFFF));
            var           originalData = data;
            int           minSize      = (int)(originalData.Size / 2) + 1;
            int           maxSize      = (int)(originalData.Size * 1.5) + 1;
            var           newDataSize  = rnd.Next(minSize, maxSize);
            ExpensiveData newData      = ExpensiveDataProducer.GetData(newDataSize);

            return(new CompressResult(newData));
        }
Exemple #2
0
        public ExpensiveData DownloadBootlegGame(int gameSize)
        {
            ExpensiveData randomData = ExpensiveDataProducer.GetData(gameSize);

            return(randomData);
        }