public void ValueTypesAndSystemTypesShouldBeNotComponents() { var mapper = new ObjectRelationalMapper(); mapper.IsComponent(typeof(string)).Should().Be.False(); mapper.IsComponent(typeof(DateTime)).Should().Be.False(); mapper.IsComponent(typeof(int)).Should().Be.False(); }
public void WhenExplicitRegisteredAsEntityIsNotComponent() { var mapper = new ObjectRelationalMapper(); mapper.TablePerClass <AComponent>(); mapper.IsComponent(typeof(AComponent)).Should().Be.False(); }
public void WhenComponentRegisteredIsRecognized() { var mapper = new ObjectRelationalMapper(); mapper.Component <AComponent>(); mapper.IsComponent(typeof(AComponent)).Should().Be.True(); }
public void WhenNotExplicitRegisteredRecognizeTheComponent() { var mapper = new ObjectRelationalMapper(); mapper.IsComponent(typeof(AComponent)).Should().Be.True(); }
public void WhenExplicitRegisteredAsEntityIsNotComponent() { var mapper = new ObjectRelationalMapper(); mapper.TablePerClass<AComponent>(); mapper.IsComponent(typeof(AComponent)).Should().Be.False(); }
public void WhenComponentRegisteredIsRecognized() { var mapper = new ObjectRelationalMapper(); mapper.Component<AComponent>(); mapper.IsComponent(typeof(AComponent)).Should().Be.True(); }