Exemplo n.º 1
0
 public void SetNextRunIntervalByNode(string node, BaseContext context)
 {
     if (!Object.Equals(context, null))
     {
         lock (context)
             context.NextRun = XMLUtility.GetNextRunIntervalByNode(Xml, node);
     }
 }
Exemplo n.º 2
0
        public void TwitterUtility_GetNextRunIntervalByNode()
        {
            Drone.Twitter.Components.Twitter t = new Twitter.Components.Twitter(new TwitterTestDataSource());
            DateTime nextRun = XMLUtility.GetNextRunIntervalByNode(t.Xml, "users");

            Assert.IsNotNull(nextRun);

            t       = new Twitter.Components.Twitter(new TwitterTestDataSource());
            nextRun = XMLUtility.GetNextRunIntervalByNode(t.Xml, "trends");

            Assert.IsNotNull(nextRun);
        }