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();
 }
예제 #2
0
        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();
        }
예제 #3
0
        public void WhenExplicitRegisteredAsEntityIsNotComponent()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.TablePerClass <AComponent>();
            mapper.IsComponent(typeof(AComponent)).Should().Be.False();
        }
예제 #4
0
        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();
 }
예제 #8
0
        public void WhenNotExplicitRegisteredRecognizeTheComponent()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.IsComponent(typeof(AComponent)).Should().Be.True();
        }