예제 #1
0
 private void SetColor(IEnumerable <int> deviceIds, BlyncClient.Color color)
 {
     foreach (var deviceId in deviceIds)
     {
         _blyncClient.SetColor(deviceId, color);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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();
 }