public CameraSnapshotInstance(CameraSnapshotDefinition theDefinition, TestExecution testExecution) : base(theDefinition, testExecution) { mCameraSnapshotDefintion = theDefinition; if (theDefinition.Camera == null) { throw new ArgumentException("'" + theDefinition.Name + "' doesn't have a camera assigned"); } mCamera = theDefinition.Camera; if (theDefinition.Camera == null) { throw new ArgumentException("'" + theDefinition.Name + "' doesn't have a value assigned to Timeout"); } mTimeout = theDefinition.Timeout; mSnapshotImage = new GeneratedImageInstance(theDefinition.ResultantImage, testExecution); mResolution = theDefinition.Resolution; testExecution.RegisterTrigger(this); }
public TriggerInstance(ITriggerDefinition theDefinition, TestExecution theExecution) : base(theDefinition, theExecution) { theExecution.RegisterTrigger(this); }