Esempio n. 1
0
 internal void ShouldThrow_When_Name_IsNotFound(
     EventCatalog sut)
 => FluentActions
 .Invoking(() => sut.GetEventType("non-existing-name"))
 .Should()
 .Throw <EventNotRegisteredException>();
Esempio n. 2
0
 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()]);