public void GetMultipleDiceRollCommands_Returns_Expected_Result() { //Arrange var expected = new DiceRollInfoComponent(); foreach (var val in Enum.GetValues(typeof(DieType))) { expected.AvailableCommands.Add(new CommandComponent { CommandName = "RollDice", FriendlyName = "Roll Dice", IsEnabled = true, IsVisible = true, Payload = new CommandPayload { ExecutionData = JObject.FromObject(new Dictionary <DieType, uint> { { (DieType)val, 0 } }) } }); } //Act var actual = _sut.GetMultipleDiceRollCommands(); //Assert expected.Should().BeEquivalentTo(expected); }
public ActionResult <DiceRollInfoComponent> GetMultipleDiceRollCommands() { var diceRollComponent = new DiceRollInfoComponent { AvailableCommands = new List <CommandComponent> { GetNewMultipleRollsComponent() } }; return(diceRollComponent); }