public void RoleRouteBuilderPermissionsRoute_WithRoleId_Success()
        {
            var id    = Guid.NewGuid();
            var route = new RoleRouteBuilder().RoleId(id.ToString()).RolePermissionsRoute;

            Assert.Equal($"{RouteConstants.RoleCollectionRoute}/{id}/{RouteConstants.PermissionCollectionRoute}", route);
        }
        public void RoleRouteBuilder_NoParameters_Success()
        {
            var route = new RoleRouteBuilder().Route;

            Assert.Equal($"{RouteConstants.RoleCollectionRoute}", route);
        }
        public void RoleRouteBuilder_WithGrainAndSecurableItemAndName_Success()
        {
            var route = new RoleRouteBuilder().Grain("app").SecurableItem("patientsafety").Name("roleName").Route;

            Assert.Equal($"{RouteConstants.RoleCollectionRoute}/app/patientsafety/roleName", route);
        }