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"); }
/// <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); }