-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from luuksommers/feature/ValidateCompleteTransform
Feature/validate complete transform
- Loading branch information
Showing
9 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/YmlTransform/Exceptions/IncompleteTransformationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace YmlTransform.Exceptions | ||
{ | ||
public class IncompleteTransformationException : Exception | ||
{ | ||
public IncompleteTransformationException() | ||
{ } | ||
|
||
public IncompleteTransformationException(string message) : base(message) | ||
{ } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
ID: "ab5b233c-111c-4fa8-affe-b0c7315fedf4" | ||
Parent: "756fff26-90f2-4889-bace-da656e66b9c1" | ||
Template: "013bc834-c0f6-4377-924e-0de185abfbe7" | ||
Path: /sitecore/content/Home/Unversioned | ||
DB: master | ||
SharedFields: | ||
- ID: "ba3f86a2-4a1c-4d78-b63d-91c2779c1b5e" | ||
Hint: __Sortorder | ||
Value: 375 | ||
Languages: | ||
- Language: en | ||
Fields: | ||
- ID: "11c0c7c6-673f-432a-b2fa-acfead30b6dd" | ||
Hint: Field1 | ||
Value: "Value1" | ||
- ID: "814e27bf-7ae2-433c-affa-aafc0797e0a8" | ||
Hint: Field2 | ||
Value: "Value2" | ||
Versions: | ||
- Version: 1 | ||
Fields: | ||
- ID: "25bed78c-4957-4165-998a-ca1b52f67497" | ||
Hint: __Created | ||
Value: 20171016T073039Z |
18 changes: 18 additions & 0 deletions
18
tests/YmlTransform.Tests/Data/MissingTransformation.ymltransform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"FieldId": "11c0c7c6-673f-432a-b2fa-acfead30b6dd", | ||
"Hint": "Field1", | ||
"Languages": "*", | ||
"Path": "/sitecore/content/Home/Unversioned", | ||
"Type": "Unversioned", | ||
"Value": "Value1New" | ||
}, | ||
{ | ||
"FieldId": "714e27bf-7ae2-433c-affa-aafc0797e0a8", | ||
"Hint": "Field3", | ||
"Languages": "*", | ||
"Path": "/sitecore/content/Home/Unversioned", | ||
"Type": "Unversioned", | ||
"Value": "Value2New" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters