Пример #1
0
        public void StringStrategy()
        {
            var strategy = new StringPartitioningStrategy();

            var o = new object();

            Assert.That(strategy.GetPartitionKey(o), Is.Null);

            Assert.That(strategy.GetPartitionKey("foo"), Is.EqualTo("foo"));
            Assert.That(strategy.GetPartitionKey("@bar"), Is.EqualTo("bar"));
        }
Пример #2
0
 public string GetPartitionKey()
 {
     return(StringPartitioningStrategy.GetPartitionKey(GetName()));
 }
 public virtual string GetPartitionKey()
 {
     return(StringPartitioningStrategy.GetPartitionKey(Name));
 }