Пример #1
0
        public void WritingTimestamp_ByMultipleEnumerableCalls_WritesTimestamp()
        {
            var features = new FeatureEnumerable(_featureClass, null, RecyclingPolicy.Recycle);

            foreach (var feature in features)
            {
                Debug.WriteLine(feature.OID);
            }

            foreach (var feature in features)
            {
                Debug.WriteLine(feature.OID);
            }

            features.ToList().ForEach(feature => Debug.WriteLine(feature.OID));

            var timestamp       = DateTime.Now;
            var timestampToSave = timestamp.ToShortTimeString();

            SavingTimestamps(features, timestampToSave);
            VerifyingSavedTimestamps(features, timestampToSave);
        }
        public void WritingTimestamp_ByMultipleEnumerableCalls_WritesTimestamp()
        {
            var features = new FeatureEnumerable(_featureClass, null, RecyclingPolicy.Recycle);

            foreach (var feature in features)
            {
                Debug.WriteLine(feature.OID);
            }

            foreach (var feature in features)
            {
                Debug.WriteLine(feature.OID);
            }

            features.ToList().ForEach(feature => Debug.WriteLine(feature.OID));

            var timestamp = DateTime.Now;
            var timestampToSave = timestamp.ToShortTimeString();

            SavingTimestamps(features, timestampToSave);
            VerifyingSavedTimestamps(features, timestampToSave);
        }