protected override void Before_each() { _aiList = new List<AssaultItem> { new AssaultItem {Description = "Stormtrooper"}, new AssaultItem {Description = "AT-ST"} }; _service = Stub<IInventoryService>(); _service.Stub(x => x.GetAllAssaultItems()).Return(_aiList); _controller = new InventoryController(_service); }
protected override void Before_each() { _item = new AssaultItem { Description = "AT-AT", LoadValue = 72 }; _service = Stub<IInventoryService>(); _service.Stub(x => x.GetAssaultItemById(2)).Return(_item); _controller = new InventoryController(_service); }
protected override void Before_each() { _item = new AssaultItem { Description = "Dark Trooper squad with 7 dark troopers", LoadValue = 4, Type = "Dark Trooper Squad" }; _service = Stub<IInventoryService>(); _service.Stub(x => x.GetAssaultItemById(2)).Return(_item); _controller = new InventoryController(_service); }