示例#1
0
        public void TestGetAllActivityGroups_Accuracy1()
        {
            HermesActivityGroup first = AccuracyTestsHelper.CreateHermesActivityGroup();

            instance.SaveActivityGroup(first);

            // Verify
            IList <HermesActivityGroup> second = instance.GetAllActivityGroups();

            Assert.AreEqual(1, second.Count, "GetAllActivityGroups is wrong.");
            AccuracyTestsHelper.VerifyHermesActivityGroup(first, second[0]);
        }
示例#2
0
        public void TestActivityGroup()
        {
            DateTime            start         = DateTime.Now;
            HermesActivityGroup activityGroup = CreateActivityGroup();

            for (int i = 1; i <= ITERATION; i++)
            {
                activityGroup.LastModifiedBy = "test" + i;
                provider.SaveActivityGroup(activityGroup);
                HermesActivityGroup result = provider.GetActivityGroup(activityGroup.Id);
                Assert.AreEqual(activityGroup.LastModifiedBy, result.LastModifiedBy);
                provider.DeleteActivityGroup(activityGroup.Id);
                Assert.IsNull(provider.GetActivityGroup(activityGroup.Id));
                IList <HermesActivityGroup> list = provider.GetAllActivityGroups();
            }
            Console.WriteLine("test ActivityGroup run {0} times, taking {1}ms.", ITERATION,
                              (DateTime.Now - start).TotalMilliseconds.ToString("n"));
        }
示例#3
0
 public void TestGetAllActivityGroups_InvalidConnection()
 {
     invalidProvider.GetAllActivityGroups();
 }