Exemplo n.º 1
0
 private static void AddUser(Entities.SynchedUser user)
 {
     using (var ctx = TestSetup.DbFactory.CreateContext())
     {
         ctx.TblSynchedUser.Add(user);
         ctx.SaveChanges();
     }
 }
Exemplo n.º 2
0
 private static void RemoveUser(Entities.SynchedUser user, Action <ExtendedRoleDbContext> action)
 {
     using (var ctx = TestSetup.DbFactory.CreateContext())
     {
         action(ctx);
         ctx.TblSynchedUser.Remove(user);
         ctx.SaveChanges();
     }
 }