Created
February 17, 2016 07:10
-
-
Save bleroy/7f668d844f4023c9537f to your computer and use it in GitHub Desktop.
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
var publisher = new FilePublisher(@"C:\file\path\to\results.log"); | |
var userCanRead = Shience.New<bool>("widget-permissions") | |
.Test(control: () => UserPermissions.CheckUser(currentUser), | |
candidate: () => User.Can(currentUser, Permission.Read)) | |
.PublishTo(publisher.Publish) | |
.Execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment