示例#1
0
        private OptimizelyAttribute[] GetAttributes(ProjectConfig projectConfig)
        {
            var attributes = new List <OptimizelyAttribute>();

            foreach (var attr in projectConfig.Attributes)
            {
                var attribute = new OptimizelyAttribute();
                attribute.Id  = attr.Id;
                attribute.Key = attr.Key;
                attributes.Add(attribute);
            }
            return(attributes.ToArray());
        }
示例#2
0
 public static void AreEqual(OptimizelyAttribute expected, OptimizelyAttribute actual)
 {
     Assert.AreEqual(expected.Id, actual.Id);
     Assert.AreEqual(expected.Key, actual.Key);
 }