Example #1
0
        private PathDescriptor BuildFullPath(IConfigurationFileDescriptor fileDescriptor, PathDescriptor rootFolder, SkinCode skinCode, ABTestCase abTest)
        {
            PathDescriptor relativeFilePath = null;

            if (abTest != null)
            {
                relativeFilePath = abTest.GetOverrideFileOrNull(fileDescriptor, skinCode);
            }

            if (relativeFilePath == null)
            {
                relativeFilePath = fileDescriptor.GetRelativePath(skinCode);
            }


            return(rootFolder + relativeFilePath);
        }
Example #2
0
 private PathDescriptor ApplyAbTestCase(ABTestCase abTest, PathDescriptor path)
 {
     return(abTest?.GetOverrideFileOrNull(path, _skinCode)
            ?? path);
 }