コード例 #1
0
        public void Organization_GetMultipleFromEmpty_Success()
        {
            var dict = testConfig.GetDefaultActivityArguments();
            PipefyQueryActivity act = new GetOrganizations();

            var result = WorkflowInvoker.Invoke(act, dict);

            Assert.IsTrue((bool)result["Success"]);
            var orgs = result["Organizations"] as JObject[];

            Assert.IsTrue(orgs.Length > 0);
        }
コード例 #2
0
        public void Organization_GetMultiple_Success()
        {
            var dict = testConfig.GetDefaultActivityArguments();

            dict["OrganizationIDs"] = new long[] { (long)testConfig.GetCustomConfig("OrganizationID") };

            PipefyQueryActivity act = new GetOrganizations();

            var result = WorkflowInvoker.Invoke(act, dict);

            Assert.IsTrue((bool)result["Success"]);
            var orgs = result["Organizations"] as JObject[];

            Assert.AreEqual(1, orgs.Length);
        }