コード例 #1
0
        public void CanGetAllSpecialistsCreatedByAPlayer()
        {
            String specName = "MyCustomSpecialist";

            submitCustomSpecialist(specName);

            String secondSpecName = "MyCustomSpecialist2";

            submitCustomSpecialist(secondSpecName);


            GetPlayerCustomSpecialistsResponse playerSpecsResponse = client.GetPlayerCustomSpecialists(new GetPlayerCustomSpecialistsRequest()
            {
                PlayerId = authHelper.getAccountId("userOne")
            });

            Assert.IsTrue(playerSpecsResponse.PlayerSpecialists.Count == 2);
            Assert.IsTrue(playerSpecsResponse.PlayerSpecialists.Count(it => it.SpecialistName == specName) == 1);
            Assert.IsTrue(playerSpecsResponse.PlayerSpecialists.Count(it => it.SpecialistName == secondSpecName) == 1);
        }