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);
            }
        }
Ejemplo n.º 2
0
 public void WhenISearchInCompanies(string name)
 {
     context.Exists <Company>(name, () => context.Storage.Get <List <Company> >(null));
 }
Ejemplo n.º 3
0
 public void GivenInsuranceIsTakenFromPoliciesSource(string key)
 {
     context.Exists(key, () => InsurancesSource.Insurances);
 }