public void GetThuriaDataModelTableName_GivenDataModelWithTableAttributeNotSet_ShouldReturnClassName()
        {
            //---------------Set up test pack-------------------
            var dataModel = new ThuriaPocoDataModel();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var tableName = dataModel.GetThuriaDataModelTableName();

            //---------------Test Result -----------------------
            tableName.Should().Be("ThuriaPoco");
        }
        public void GetThuriaDataModelPrimaryKey_GivenDataModelWithNoPrimaryKey_ShouldReturnNull()
        {
            //---------------Set up test pack-------------------
            var dataModel = new ThuriaPocoDataModel();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var primaryKey = dataModel.GetThuriaDataModelPrimaryKey();

            //---------------Test Result -----------------------
            primaryKey.Should().BeNull();
        }
        public void GetThuriaPopulatedRelationshipMetadata_GivenDataModelWithNoRelationships_ShouldReturnEmptyList()
        {
            //---------------Set up test pack-------------------
            var dataModel = new ThuriaPocoDataModel();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var modelRelationships = dataModel.GetThuriaPopulatedRelationshipMetadata();
            //---------------Test Result -----------------------
            var thuriaRelationshipAttributes = modelRelationships.ToList();

            thuriaRelationshipAttributes.Should().NotBeNull();
            thuriaRelationshipAttributes.Count().Should().Be(0);
        }
        public void GetThuriaDataModelConditions_GivenDataModelWithNoConditions_ShouldReturnEmptyConditionList(DbContextAction DbContextAction)
        {
            //---------------Set up test pack-------------------
            var dataModel = new ThuriaPocoDataModel
            {
                Id           = Guid.NewGuid(),
                Name         = RandomValueGenerator.CreateRandomString(),
                Description  = RandomValueGenerator.CreateRandomString(),
                ModifiedDate = RandomValueGenerator.CreateRandomDate(),
                IsActive     = true
            };
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var allConditions = dataModel.GetThuriaDataModelConditions(DbContextAction);
            //---------------Test Result -----------------------
            var dataModelConditions = allConditions.ToList();

            dataModelConditions.Should().NotBeNull();
            dataModelConditions.Count.Should().Be(0);
        }