-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fluent Every.Day, Version Bump and doc fluent update
- Loading branch information
1 parent
53d96eb
commit dd053f0
Showing
6 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using GoldenFox.Internal; | ||
using GoldenFox.Internal.Operators.Intervals; | ||
|
||
namespace GoldenFox.Fluent | ||
{ | ||
public class DayBuilder : Every | ||
{ | ||
private Timestamp _time = "00:00"; | ||
|
||
public DayBuilder At(Timestamp timestamp) | ||
{ | ||
_time = timestamp; | ||
return this; | ||
} | ||
|
||
internal override OperatorBuilder InternalBuild() | ||
{ | ||
var dayInWeek = new Day(_time); | ||
return new OperatorBuilder( | ||
x => | ||
{ | ||
dayInWeek.AddConstraints(x); | ||
return dayInWeek; | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters