Пример #1
0
 public void WhenIAddDrinkSizeCustomizationsToCoffee()
 {
     var itemId = EventSourceHelper.GetId<Item>();
     var cmd = new AddCustomization(
         itemId, "Size", new[] {"Short", "Tall", "Grande", "Venti"});
     WhenHelper.When(cmd);
 }
Пример #2
0
 private void AddCustomization(
     Guid menuItemId,
     string customization,
     string[] options)
 {
     var cmd = new AddCustomization(menuItemId, customization, options);
     _commandSender.Send(cmd);
 }