public void constructor_should_initialize_instance()
        {
            var writeConcern = new WriteConcern();

            var result = new AbortTransactionOperation(writeConcern);

            result.CommandName().Should().Be("abortTransaction");
            result.WriteConcern.Should().BeSameAs(writeConcern);
        }
        public void CommandName_should_return_expected_result()
        {
            var writeConcern = new WriteConcern();
            var subject      = new AbortTransactionOperation(writeConcern);

            var result = subject.CommandName();

            result.Should().Be("abortTransaction");
        }
        public void constructor_should_initialize_instance()
        {
            var writeConcern  = new WriteConcern();
            var recoveryToken = new BsonDocument("generalOrder", 1);

            var result = new AbortTransactionOperation(recoveryToken, writeConcern);

            result._recoveryToken().Should().BeSameAs(recoveryToken);
            result.CommandName().Should().Be("abortTransaction");
            result.WriteConcern.Should().BeSameAs(writeConcern);
        }