예제 #1
0
        private FixtureContainer CreateFixtureContainerFromDictionary(string name, IDictionary dictionary)
        {
            var container = new FixtureContainer
                                {
                                    Name = name,
                                    Fixtures = dictionary.Keys.Cast<string>()
                                        .Select(x => CreateFixture(x, dictionary[x]))
                                };

            return container;
        }
예제 #2
0
 private FixtureContainer CreateFixtureContainerFromList(string name, IEnumerable list)
 {
     var container = new FixtureContainer
                         {
                             Name = name,
                             Fixtures = list.Cast<object>().Select(x => CreateFixture(null, x))
                         };
     return container;
 }