예제 #1
0
 private static object AllParameters(IRoleMap role)
 {
     return(new
     {
         role.Id,
         role.Name
     });
 }
예제 #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);
 }
예제 #3
0
 public RoleRepository(IIdentityDBContext dbc, IRoleMap map_factory) : base(map_factory)
 {
     entity_context = dbc;
 }