Skip to content

Instantly share code, notes, and snippets.

@satish860
Created October 18, 2012 05:03
Show Gist options
  • Save satish860/3909943 to your computer and use it in GitHub Desktop.
Save satish860/3909943 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RuleComposer.Test
{
public class CustomerSpecification:SpecificationFor<Customer>
{
public CustomerSpecification()
{
When(p => p.PurchasedAmount >= 100001).Then(p => p.customerType = CustomerType.Premium);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment