GetShardStrategyById() public method

Get the shrad strategy for a given shard
public GetShardStrategyById ( long shardId ) : IList
shardId long
return IList
示例#1
0
        public void GetShardById_Test()
        {
            var shardId = 1000;
            var shardRep = new ShardStrategyRepository();
            var shardWile = shardRep.GetShardStrategyById(1000);

            Assert.AreEqual(1,shardWile.Count,"Shard count equal to 1 fro CXC");
            Assert.AreEqual(5,shardWile[0].TotalCount,"Total count of Shardwile updated to 5");
        }
示例#2
0
 /// <summary>
 /// Get the shard strategy by shard id
 /// </summary>
 /// <param name="shardId"></param>
 /// <returns></returns>
 public IList<ShardWile> GetShardStrategyById(long shardId)
 {
     var shardStrategy = new ShardStrategyRepository();
     return shardStrategy.GetShardStrategyById(shardId);
 }