public void AddEvent_Test() { IEventManager eventManager = new QueueEventManager(); string streamName = "test stream"; Event expectedEvent = new Event(streamName, "test data", "test auth"); eventManager.addEvent(expectedEvent); Event resultEvent = eventManager.getEvent(streamName); Assert.AreEqual(expectedEvent.stream_, resultEvent.stream_); Assert.AreEqual(expectedEvent.data_, resultEvent.data_); Assert.AreEqual(expectedEvent.authKey_, resultEvent.authKey_); }
public void Constructor_Test() { IEventManager eventManager = new QueueEventManager(); Assert.AreEqual(eventManager.getEvent(""), null); }