PageRenderTime 873ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/MongoDB.Driver.Tests/Specifications/command-monitoring/ICrudOperationTest.cs

http://github.com/mongodb/mongo-csharp-driver
C# | 33 lines | 15 code | 4 blank | 14 comment | 0 complexity | 79fc98bb02d1be6ee775de7fd1c5a34b 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 System.Threading.Tasks;
  17. using FluentAssertions;
  18. using MongoDB.Bson;
  19. using MongoDB.Driver.Core.Clusters;
  20. using MongoDB.Driver.Core.Misc;
  21. namespace MongoDB.Driver.Tests.Specifications.command_monitoring
  22. {
  23. public interface ICrudOperationTest
  24. {
  25. bool CanExecute(ClusterDescription clusterDescription, BsonDocument arguments, out string reason);
  26. void Execute(ClusterDescription clusterDescription, IMongoDatabase database, IMongoCollection<BsonDocument> collection, BsonDocument arguments, bool async);
  27. BsonDocument MassageReply(BsonDocument reply);
  28. }
  29. }