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