public void GivenInsuranseMatchesHiLevelNOTCondition(string key) { var token = context.GetToken <Insurance>(key); context.Not(x => { x.InsuranceHasMaximumDependents(token); x.InsuranceHasDependentAssignment(token); x.InsuranceHasFederalTax(token); }); }
public void WhenINeedDepartmentToNOTHaveAllThreeTypeEmployeeProjectBudjetOrMore(string departmentName, DepartmentType departmentType, EmploymentType employeeType, int amount) { IHaveToken <Employee> employee = null; var department = context.GetToken <Department>(departmentName); context.Not(x => { x.DepartmentHasType(department, departmentType); employee = x.DepartmentHasEmployeeOfType(department, employeeType); x.DepartmentHasProjectWithBudget(department, amount); }); context.Storage.Set(employee); }