public void WhenGetInheritedClassUsingInterfaceThenNotThrows() { using (var scenario = new ScenarioWithB(Sfi)) { using (var s = OpenSession()) { INamed loadedEntity = null; Executing.This(() => loadedEntity = s.Get <INamed>(scenario.B.Id)).Should().NotThrow(); loadedEntity.Should().Be.OfType <B>(); } } }