Beispiel #1
0
        public void Initialization_ViewNameNull()
        {
            var entityDefinition = new TestableRdbmsStorageEntityDefinitionBase(
                _storageProviderDefinition,
                null,
                _objectIDProperty,
                _timestampProperty,
                new[] { _property1, _property2, _property3 },
                new IIndexDefinition[0],
                new EntityNameDefinition[0]
                );

            Assert.That(entityDefinition.ViewName, Is.Null);
        }
Beispiel #2
0
        public void SetUp()
        {
            _storageProviderDefinition = new UnitTestStorageProviderStubDefinition("SPID");

            _objectIDProperty  = ObjectIDStoragePropertyDefinitionObjectMother.ObjectIDProperty;
            _timestampProperty = SimpleStoragePropertyDefinitionObjectMother.TimestampProperty;
            _property1         = SimpleStoragePropertyDefinitionObjectMother.CreateStorageProperty("Column1");
            _property2         = SimpleStoragePropertyDefinitionObjectMother.CreateStorageProperty("Column2");
            _property3         = SimpleStoragePropertyDefinitionObjectMother.CreateStorageProperty("Column3");

            _indexes  = new[] { MockRepository.GenerateStub <IIndexDefinition>() };
            _synonyms = new[] { new EntityNameDefinition(null, "Test") };

            _rdbmsStorageEntityDefinition = new TestableRdbmsStorageEntityDefinitionBase(
                _storageProviderDefinition,
                new EntityNameDefinition("Schema", "Test"),
                _objectIDProperty,
                _timestampProperty,
                new[] { _property1, _property2, _property3 },
                _indexes,
                _synonyms);
        }