public virtual void SendLedAnimationCommand(ILedAnimation ledAnimatoin) { int freq = FloatToInt32Converter.Convert(ledAnimatoin.FrequencyInHz); string message = string.Format("{0},{1},{2}", (int)ledAnimatoin.Animation, freq, ledAnimatoin.DurationInSeconds); string command = CommandFormatter.CreateCommand(LedCommand, message); CommandQueue.Enqueue(command); }
public void InitializeTests() { _target = new FloatToInt32Converter(); }
public ProgressiveCommandFormatter() { FloatToInt32Converter = new FloatToInt32Converter(); }