public void TestServiceUpdateStades() { ServiceReference.ServiceClient client = new ServiceReference.ServiceClient(); List <StadeWS> stades = client.getStades(); Assert.IsNotNull(stades); StadeWS kamino = client.getStades().Find(x => x.Planete.Equals("Kamino")); kamino.NbPlaces = 10; client.updateStade(kamino); Assert.AreEqual(10, ((StadeWS)client.getStades().Find(x => x.Planete.Equals("Kamino"))).NbPlaces); kamino.NbPlaces = 100000; client.updateStade(kamino); Assert.AreEqual(100000, ((StadeWS)client.getStades().Find(x => x.Planete.Equals("Kamino"))).NbPlaces); client.Close(); }