public void CommandName_should_return_expected_result() { var writeConcern = new WriteConcern(); var subject = new CommitTransactionOperation(null, writeConcern); var result = subject.CommandName(); result.Should().Be("commitTransaction"); }
public void constructor_should_initialize_instance() { var writeConcern = new WriteConcern(); var result = new CommitTransactionOperation(writeConcern); result.CommandName().Should().Be("commitTransaction"); result.WriteConcern.Should().BeSameAs(writeConcern); }
public void constructor_should_initialize_instance() { var writeConcern = new WriteConcern(); var recoveryToken = BsonDocument.Parse("{generalOrder: 1}"); var result = new CommitTransactionOperation(recoveryToken, writeConcern); result.CommandName().Should().Be("commitTransaction"); result.RecoveryToken.Should().Be(recoveryToken); result.WriteConcern.Should().BeSameAs(writeConcern); }