Exemple #1
0
        public void Bind_Should_Create_BoundStatement_With_Provided_Values()
        {
            var ps = new PreparedStatement();

            ps.SetRoutingKey(new RoutingKey(new byte[] { 0x01 }));
            ps.SetConsistencyLevel(ConsistencyLevel.LocalQuorum);
            ps.SetIdempotence(true);
            var statement = ps.Bind();

            Assert.AreEqual(ConsistencyLevel.LocalQuorum, statement.ConsistencyLevel);
            Assert.AreSame(ps.RoutingKey, statement.RoutingKey);
            Assert.True(statement.IsIdempotent);
        }