Ejemplo n.º 1
0
        public void PermissionsForRoles()
        {
            // Arrange
            var role = new TestRole();
            var sut  = new RolePermissions(new List <Role> {
                role
            });

            // Act
            var result = sut.PermissionsForRoles(new[] { UserRoles.MedicalExaminer });

            // Assert
            result.Keys.Should().Contain(Permission.AddEventToExamination);
            result[Permission.AddEventToExamination].Should().BeTrue();
        }