public override void When() { var json = String.Format(moveCommandTemplate, id); var obj = JsonConvert.DeserializeObject<IEnumerable<dynamic>>(json); result = Subject.Process(obj); unit = result.Units.First(); }
public override void When() { var json = String.Format(attackCommandTemplate, activeUnitId); var obj = JsonConvert.DeserializeObject<IEnumerable<dynamic>>(json); result = Subject.Process(obj); }