public void ModelExtensions_GetIdValueOnModelWithAttributeIdPropertyWithAttributeDeclaration_ShouldReturnNull()
        {
            var entity = new ModelWithAttributeIdProperty
            {
                IndexProperty = 1
            };

            var id = int.Parse(entity.GetIdValue <CustomIdAttribute>().ToString());

            Assert.AreEqual(entity.IndexProperty, id, "Id should be 1.");
        }
        public void ModelExtensions_GetIdValueOnModelWithAttributeIdPropertyWithoutAttributeDeclaration_ShouldReturnNull()
        {
            var entity = new ModelWithAttributeIdProperty
            {
                IndexProperty = 1
            };

            var id = entity.GetIdValue();

            Assert.IsNull(id, "Id should be null.");
        }
        public void ModelExtensions_GetIdValueOnModelWithAttributeIdPropertyWithAttributeDeclaration_ShouldReturnNull()
        {
            // Arrange
            var entity = new ModelWithAttributeIdProperty
            {
                IndexProperty = 1,
            };

            // Act
            var id = int.Parse(entity.GetIdValue <CustomIdAttribute>().ToString(), CultureInfo.InvariantCulture);

            // Assert
            Assert.AreEqual(entity.IndexProperty, id);
        }
        public void ModelExtensions_GetIdValueOnModelWithAttributeIdPropertyWithoutAttributeDeclaration_ShouldReturnNull()
        {
            // Arrange
            var entity = new ModelWithAttributeIdProperty
            {
                IndexProperty = 1,
            };

            // Act
            var id = entity.GetIdValue();

            // Assert
            Assert.IsNull(id);
        }