Beispiel #1
0
 private static object AllParameters(IRoleMap role)
 {
     return(new
     {
         role.Id,
         role.Name
     });
 }
Beispiel #2
0
 public static Mock <IMemberAccess> WithValidFindByName(this Mock <IMemberAccess> mock, IRoleMap roleMap)
 {
     mock.Setup(m => m.FindMemberRoleByName(It.IsAny <string>())).ReturnsAsync(roleMap);
     return(mock);
 }
Beispiel #3
0
 public RoleRepository(IIdentityDBContext dbc, IRoleMap map_factory) : base(map_factory)
 {
     entity_context = dbc;
 }