/// <summary> /// Tänker att denna ska användas efter att en action är klar för att byta /// action/ge info om hur det gick att utföra den actionen. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void Action_ActionCallback(object sender, ActionFinishedEventArgs e) { viewControl.UpdateActionStatus(e.Result); switch (e.Result) { case ActionCallback.Successfull: if (plan.Count < 1) { Debug.Log("PlanQueue count was 0, need new plan!"); //Kommentera ut StartCoroutine(NewPlan()) om du bestämma själv när agenten ska //göra ny plan med P. StartCoroutine(NewPlan()); } else { Debug.Log("ActionCallback " + e.Result); StartCoroutine(NextAction()); } break; case ActionCallback.Failed: Debug.Log("Plan failed, need new plan!"); //Kommentera ut StartCoroutine(NewPlan()) om du bestämma själv när agenten ska //göra ny plan med P. StartCoroutine(NewPlan()); break; } }
private void verifyAction_Finished(object sender, ActionFinishedEventArgs e) { finishedEventArgs = e; verifyAction.PendingFeatures.Count.ShouldEqual(0); verifyAction.FeatureStates["domain.com"][featureOne].ShouldEqual(FeatureState.Enabled); verifyAction.FeatureStates["domain.com"][featureTwo].ShouldEqual(FeatureState.Rejected); verifyAction.FeatureStates["domain.com"][featureThree].ShouldEqual(FeatureState.Enabled); // TODO: Test the argument to be correct licenseStore.Received(1).SetLicenses(Arg.Any <ICollection <KeyValuePair <string, byte[]> > >()); }
private void verifyAction_Finished(object sender, ActionFinishedEventArgs e) { lastEndedVerification = DateTime.UtcNow; }
private void stubExceptionAction_Finished(object sender, ActionFinishedEventArgs eventArgs) { finishedEventArgs = eventArgs; }