You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Enflow
2
2
======
3
3
4
-
Enflow is a simple library for workflows and business rules. It is an ideal replacement for the _Unit of Work_ pattern popular in MVC applications, particularly where model state validation must accompany units of work.
4
+
Enflow is a simple library for workflows and state/business rules. It is an ideal replacement for the _Unit of Work_ pattern popular in MVC applications, particularly where model state validation must accompany units of work.
5
5
6
6
Usage is not limited to MVC. Enflow is a [Portable Class Library](http://msdn.microsoft.com/en-us/library/gg597391.aspx) (PCL) and works across multiple platforms. For more information, including usage in _Mono for Android_ and _MonoTouch_, have a read of [this blog post](http://slodge.blogspot.sk/2012/12/cross-platform-winrt-monodroid.html) by Stuart Lodge ([@slodge](https://twitter.com/slodge)).
7
7
@@ -17,19 +17,21 @@ public class Employee : IModel<Employee>
17
17
}
18
18
```
19
19
20
-
### Business Rules
20
+
### State Rules
21
21
22
-
Create business rules based on your models and use the fluent API to create composite rules from atomic constituents.
22
+
Create rules based on your models and use the fluent API to create composite rules from atomic constituents.
@@ -45,14 +47,15 @@ var salaryRaiseRule = new MaxSalaryRule()
45
47
46
48
### Workflows
47
49
48
-
This is our new _Unit of Work_. Instantiate, passing in the rule to be validated. If the rule validation fails, a _BusinessRuleException_ will be thrown with the rule description as the message.
50
+
This is our new _Unit of Work_. Instantiate, passing in the rule to be validated. If the rule validation fails, a _StateRuleException_ will be thrown with the rule description as the message.
0 commit comments