Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created February 17, 2016 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bleroy/7f668d844f4023c9537f to your computer and use it in GitHub Desktop.
Save bleroy/7f668d844f4023c9537f to your computer and use it in GitHub Desktop.
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