Beispiel #1
0
        public void TestScheduleItemRequestStatus()
        {
            DateTime start = DateTime.Now;
            HermesScheduleItemRequestStatus item = CreateScheduleItemRequestStatus();

            for (int i = 1; i <= ITERATION; i++)
            {
                item.LastModifiedBy = "test" + i;
                provider.SaveScheduleItemRequestStatus(item);
                provider.DeleteScheduleItemRequestStatus(item.Id);
            }
            Console.WriteLine("ScheduleItemRequestStatus run {0} times, taking {1}ms.", ITERATION,
                              (DateTime.Now - start).TotalMilliseconds.ToString("n"));
        }
Beispiel #2
0
        public void TestDeleteScheduleItemRequestStatus_Accuracy()
        {
            HermesScheduleItemRequestStatus first = AccuracyTestsHelper.CreateHermesScheduleItemRequestStatus();

            instance.SaveScheduleItemRequestStatus(first);

            // Verify
            HermesScheduleItemRequestStatus second = instance.GetScheduleItemRequestStatus(first.Id);

            Assert.IsNotNull(second, "SaveScheduleItemRequestStatus is wrong.");

            instance.DeleteScheduleItemRequestStatus(first.Id);

            // Verify
            second = instance.GetScheduleItemRequestStatus(first.Id);
            Assert.IsNull(second, "DeleteScheduleItemRequestStatus is wrong.");
        }
Beispiel #3
0
 public void TestDeleteScheduleItemRequestStatus_InvalidConnection()
 {
     invalidProvider.DeleteScheduleItemRequestStatus(Guid.NewGuid().ToString("N"));
 }
Beispiel #4
0
 public void TestDeleteScheduleItemRequestStatus_IdNotfound()
 {
     provider.DeleteScheduleItemRequestStatus(Guid.NewGuid().ToString("N"));
 }