private void SetColor(IEnumerable <int> deviceIds, BlyncClient.Color color) { foreach (var deviceId in deviceIds) { _blyncClient.SetColor(deviceId, color); } }
private void When_I_turn_on_predefined_color(BlyncClient.Color color) { _successful = true; for (var device = 0; device < _blyncClient.NumberOfDevices; device++) { _successful &= _blyncClient.SetColor(device, color); } }
public void Should_be_able_to_turn_on_predefined_color(BlyncClient.Color color) { Given_I_have_a_client(); When_I_turn_on_predefined_color(color); Then_I_should_have_successfully_turned_on_predefined_color(); }