internal void ShouldThrow_When_Name_IsNotFound( EventCatalog sut) => FluentActions .Invoking(() => sut.GetEventType("non-existing-name")) .Should() .Throw <EventNotRegisteredException>();
internal void Should_Resolve_Type_From_Name( [Frozen] IReadOnlyDictionary <EventName, Type> mappings, EventCatalog sut) => sut.GetEventType(mappings.Keys.First()) .Should() .Be(mappings[mappings.Keys.First()]);