public void AddStorageModelsToDatabase(IEnumerable <StorageModel <TestModel, TestMetadata> > storageModels)
        {
            var addTestModels = Commands.AddManyAsync <TestModel, TestMetadata>(this);

            var addTask = Task.Run(() => addTestModels(storageModels));

            addTask.Wait();
        }
        public void AddTestModelsToDatabase(IEnumerable <TestModel> testModels)
        {
            var addTestModels = Commands.AddManyAsync <TestModel>(this);

            var addTask = Task.Run(() => addTestModels(testModels));

            addTask.Wait();
        }
 public void Create_throws_on_invalid_arguments_with_custom_metadata()
 {
     Assert.That(
         () => Commands.AddManyAsync <TestModel, TestMetadata>(null),
         Throws.TypeOf <ArgumentNullException>());
 }
 public void Create_throws_on_invalid_arguments()
 {
     Assert.That(
         () => Commands.AddManyAsync <TestModel>(null),
         Throws.TypeOf <ArgumentNullException>());
 }