public void AddEventTest()
    {
      var repo = new EventRepository();
      Assert.IsTrue(repo.GetEvents().Count() == 0);

      repo.AddEvent(new TestEvent(), DateTime.Now, "1");
      Assert.IsTrue(repo.GetEvents().Count() == 1, "Failed to add event");

      var @event = new TestEvent();
      repo.AddEvent(@event, DateTime.UtcNow.AddMinutes(15), "e1");
      repo.AddEvent(@event, DateTime.UtcNow.AddMinutes(26), "e2");
      Assert.IsTrue(repo.GetEvents().Count() == 3, "Failed to add new event of same object instance with different eventKey");
    }
 public void GetEventsTest()
 {
   var repo = new EventRepository();
   repo.AddEvent(new TestEvent(), DateTime.Now, "1");
   repo.AddEvent(new TestEvent(), DateTime.UtcNow.AddMinutes(15), "2");
   Assert.IsTrue(repo.GetEvents().Count() == 2, "Expected 2 events");
 }