Пример #1
0
        public void TestServiceUpdateMatches()
        {
            ServiceReference.ServiceClient client = new ServiceReference.ServiceClient();

            List <MatchWS> matches = client.getMatches();

            Assert.IsNotNull(matches);
            MatchWS kamino = client.getMatches().Find(x => x.Id.Equals(11));

            kamino.Phase = (EPhaseTournoiWS)5;
            client.updateMatch(kamino);
            Assert.AreEqual((EPhaseTournoiWS)5, ((MatchWS)client.getMatches().Find(x => x.Id.Equals(11))).Phase);
            kamino.Phase = (EPhaseTournoiWS)4;
            client.updateMatch(kamino);
            Assert.AreEqual((EPhaseTournoiWS)4, ((MatchWS)client.getMatches().Find(x => x.Id.Equals(11))).Phase);

            client.Close();
        }