PageRenderTime 40ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/MongoDB.Driver.Tests/Specifications/crud/ICrudOperationTest.cs

http://github.com/mongodb/mongo-csharp-driver
C# | 37 lines | 19 code | 4 blank | 14 comment | 0 complexity | b18d0a7506a912693f4a51e5f374798d MD5 | raw file
Possible License(s): Apache-2.0
  1. /* Copyright 2010-present MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. using System;
  16. using MongoDB.Bson;
  17. using MongoDB.Driver.Core.Clusters;
  18. namespace MongoDB.Driver.Tests.Specifications.crud
  19. {
  20. public interface ICrudOperationTest
  21. {
  22. Exception ActualException { get; set; }
  23. void Execute(
  24. ClusterDescription clusterDescription,
  25. IMongoDatabase database,
  26. IMongoCollection<BsonDocument> collection,
  27. BsonDocument arguments,
  28. BsonDocument outcome,
  29. bool isErrorExpected,
  30. bool async);
  31. void SkipIfNotSupported(BsonDocument arguments);
  32. }
  33. }