public WeaponMapperTest() { subject = new WeaponMapper("sword"); model = new Weapon("sword") { Name = "Master Sword", Parry = 30, Powers = new [] { "As Weapon Durability Lowers so will the Damage of the Sword", "Regenerates Weapon Durability", "Deals 2x Damage when Fighting Ganon" }, Locations = new [] { "The Korok Forest", "You Can View The Full Guide Here: How To Get The master Sword In Zelda Breath of the Wild" } }; data = new List <string> { "Master Sword", "2 - 30" + "%% As Weapon Durability Lowers so will the Damage of the Sword." + "%% (Regenerates Weapon Durability)" + "%% Deals 2x Damage when Fighting Ganon", "The Korok Forest" + "%% You Can View The Full Guide Here: How To Get The master Sword In Zelda Breath of the Wild." }; }
private List <Item> GetWeapons(List <ItemModel> itemModels, Handedness handedness) { var items = new List <Item>(); var mapper = new WeaponMapper(); foreach (var itemModel in itemModels) { var item = mapper.MapFrom(itemModel, handedness); items.Add(item); } return(items); }