-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
Hello
I try to use multiple specs in another, to create a complex spec. Is it possible ?
Thanks :)
public class DuplicateExpenseSpecification : Specification<Expense>
{
public DuplicateExpenseSpecification(Expense expense)
{
ISpecification<Expense> expenseWithAmountSpecification = new ExpenseWithAmountSpecification(expense.Amount);
ISpecification<Expense> expenseWithCurrencySpecification = new ExpenseWithCurrencySpecification(expense.Currency);
ISpecification<Expense> expenseWithUserIdSpecification = new ExpenseWithUserIdSpecification(expense.UserId);
// this.Query...
}
}Metadata
Metadata
Assignees
Labels
No labels