Exemple #1
0
        private static IBOPropAuthorisation GetPropAuthorisationStub_CanUpdate_False()
        {
            IBOPropAuthorisation authorisationStub = new BOPropAuthorisationStub();

            authorisationStub.AddAuthorisedRole("A Role", BOPropActions.CanRead);
            return(authorisationStub);
        }
 private static IBOPropAuthorisation GetPropAuthorisationStub_CanRead_False()
 {
     IBOPropAuthorisation authorisationStub = new BOPropAuthorisationStub();
     return authorisationStub;
 }
 private static IBOPropAuthorisation GetPropAuthorisationStub_CanRead_True()
 {
     IBOPropAuthorisation authorisationStub = new BOPropAuthorisationStub();
     authorisationStub.AddAuthorisedRole("A Role", BOPropActions.CanUpdate);
     authorisationStub.AddAuthorisedRole("A Role", BOPropActions.CanRead);
     return authorisationStub;
 }
Exemple #4
0
        private static IBOPropAuthorisation GetPropAuthorisationStub_CanRead_False()
        {
            IBOPropAuthorisation authorisationStub = new BOPropAuthorisationStub();

            return(authorisationStub);
        }