Skip to content

Commit 4ad2cc1

Browse files
author
Joseph Phillips
committed
Fixed README formatting.
1 parent e064ff6 commit 4ad2cc1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@ public class Employee : IModel<Employee>
2121

2222
Create rules based on your models and use the fluent API to create composite rules from atomic constituents.
2323
```csharp
24-
public class MaxSalaryRule :
25-
StateRule<Employee>
24+
public class MaxSalaryRule : StateRule<Employee>
2625
{
2726
public override bool IsSatisfied(Employee candidate)
2827
{
2928
return candidate.Salary < 40000;
3029
}
3130
}
3231

33-
public class InHrDepartmentRule :
34-
StateRule<Employee>
32+
public class InHrDepartmentRule : StateRule<Employee>
3533
{
3634
public override bool IsSatisfied(Employee candidate)
3735
{
@@ -54,8 +52,7 @@ public class ApplySalaryRaise : Workflow<Employee>
5452
{
5553
private readonly IRepository<Employee> _repository;
5654

57-
public ApplySalaryRaise(I
58-
StateRule<Employee> rule, IRepository<Employee> repository)
55+
public ApplySalaryRaise(IStateRule<Employee> rule, IRepository<Employee> repository)
5956
: base(rule)
6057
{
6158
_repository = repository;

0 commit comments

Comments
 (0)