Ejemplo n.º 1
0
        public void GivenIHaveSetUpAModelWithContainingOfItems(int branches, int items)
        {
            var watch = new Stopwatch();

            models = ModelGenerator.GenerateModels(branches, items).ToList();
            watch.Stop();
            Debug.WriteLine("generate time " + watch.Elapsed);
            context.Exists("model", () => models);
            for (int i = 0; i < branches; i++)
            {
                var i1    = i;
                var token = context.For <Model>("model").Exists(model => model.Branches[i1]);
                context.For <Item>(token).IsTrue(x => x.Valid);
            }
        }