Ejemplo n.º 1
0
        public void GetPackageIdList()
        {
            // inject 3 indices
            TestIndexReader.Test_Indexes = new string[] { "1", "2", "3" };
            dynamic json = this.ToDynamic(_controller.ListPackages(false, 0, 10));

            string[] ids = json.success.packages.ToObject <string[]>();
            Assert.Equal(3, ids.Count());
        }