public void ShouldConvertJsonStringToCreateGameEvent() { var createGameEvent = _testDataCreator.GenerateCreateGameEvent(); var inputJsonString = JsonConvert.SerializeObject(createGameEvent); var actualDominoesEvent = EventJsonConverter.Convert(inputJsonString); actualDominoesEvent.Should().NotBeNull(); #pragma warning disable 8602 actualDominoesEvent.GetType().Should().Be(typeof(CreateGameEvent)); #pragma warning restore 8602 actualDominoesEvent.EventId.Should().Be(createGameEvent.EventId); }