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