public void LoadUnknownId()
        {
            var storage = new MemoryStorage();

            var result = storage.Release(Guid.NewGuid());

            Assert.Empty(result);
        }
        public void LoadCorrectId()
        {
            var guid = Guid.NewGuid();
            var theEvent = new FakeEvent();

            var storage = new MemoryStorage();
            storage.Hold(guid, theEvent);
            var result = storage.Release(guid);

            Assert.Same(theEvent, result.FirstOrDefault());
        }
        public void LoadNoId()
        {
            var storage = new MemoryStorage();

            Assert.Throws<ArgumentException>(() => storage.Release(Guid.Empty));
        }