Пример #1
0
        public void GetAccountByIDTest()
        {
            //AccountClient proxy = new AccountClient("BasicHttpBinding_IAccountService");
            //proxy.FindAccountByCompany(new Entities.Company() { CompanyKey = 1 });
            //proxy.GetAccountByID(3);
            //proxy.Open();
            //Account account = proxy.GetAccountByID(3);
            //proxy.Close();

            using (AccountClient proxy = new AccountClient("BasicHttpBinding_IAccountService"))
            {
                Account account = proxy.GetAccountByID(3, true);
                Assert.AreEqual("Sportsman's Grille - Brentwood", account.AccountName);
            };

            //Console.WriteLine(account.AccountName);

            //Assert.AreEqual("Sportsman's Grille - Brentwood", account.AccountName);
        }