Esempio n. 1
0
 /// <summary>
 /// Loads <paramref name="amount"/> bytes into this object.
 /// </summary>
 /// <typeparam name="TElement">The type of the elements in the collection.</typeparam>
 /// <param name="collection">This collection.</param>
 /// <param name="amount">The amount of elements to load.</param>
 /// <param name="source">The source to load data from.</param>
 public static void Load <TElement>(this IWrite <TElement> collection, Int32 amount, IRead <TElement> source)
 {
     for (Int32 i = 0; i < amount; i++)
     {
         collection.Load(source);
     }
 }
        public void LoadIntegrationTest()
        {
            Assert.Inconclusive("TODO.");

            IWrite target        = CreateIWrite(); // TODO: Initialize to an appropriate value
            string path          = string.Empty;   // TODO: Initialize to an appropriate value
            bool   startServices = false;          // TODO: Initialize to an appropriate value

            target.Load(path, startServices);
        }
Esempio n. 3
0
 /// <summary>
 /// Ensures <paramref name="amount"/> bytes are loaded into this object.
 /// </summary>
 /// <typeparam name="TElement">The type of the elements in the collection.</typeparam>
 /// <param name="collection">This collection.</param>
 /// <param name="amount">The amount of <typeparamref name="TElement"/> to have loaded.</param>
 /// <param name="source">The source to load data from.</param>
 public static void EnsureLoaded <TElement>(this IWrite <TElement> collection, Int32 amount, IRead <TElement> source)
 {
     if (source is not null)
     {
         for (Int32 i = 0; i < amount; i++)
         {
             collection.Load(source);
         }
     }
 }