testInitializeGeigerData function

Future testInitializeGeigerData(
  1. dynamic indicatorID,
  2. dynamic controller
)

Implementation

Future testInitializeGeigerData(var indicatorID, var controller) async {

  Storage.geigerIndicatorUUID = indicatorID;
  Storage.controller = controller;

  await createLocal();
  await init(Types.users);
  await init(Types.devices);

  await getExistScoreNodes(Types.users, Types.geigerScoreUser);
  await getExistScoreNodes(Types.devices, Types.geigerScoreDevice);
  await getExistScoreNodes(Types.users, Types.recommendations);
  await getExistScoreNodes(Types.devices, Types.recommendations);
  await getExistScoreNodes(Types.users, Types.geigerScoreAggregate);
  await getExistScoreNodes(Types.enterprise,Types.geigerScoreMSE);

  await createThreats();
  await createPlugin();
  await createProfiles();
  await createRecommendations();
  await createEnterprise();

}