예제 #1
0
        public void GivenInsuranseMatchesHiLevelNOTCondition(string key)
        {
            var token = context.GetToken <Insurance>(key);

            context.Not(x =>
            {
                x.InsuranceHasMaximumDependents(token);
                x.InsuranceHasDependentAssignment(token);
                x.InsuranceHasFederalTax(token);
            });
        }
예제 #2
0
        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);
        }