public void GetCompanyInfoTest() { var service = new CvrApiService(); CompanyInfo companyInfo = service.GetCompanyInfo("29473609"); Console.WriteLine("Name : {0}", companyInfo.Name); Console.WriteLine("VAT : {0}", companyInfo.VAT); Console.WriteLine("Address : {0}", companyInfo.Address); Console.WriteLine("Zipcode : {0}", companyInfo.Zipcode); Console.WriteLine("City : {0}", companyInfo.City); Console.WriteLine("Protected : {0}", companyInfo.Protected); Console.WriteLine("Phone : {0}", companyInfo.Phone); Console.WriteLine("Email : {0}", companyInfo.Email); Console.WriteLine("Fax : {0}", companyInfo.Fax); Console.WriteLine("StartDate : {0}", companyInfo.StartDate); Console.WriteLine("EndDate : {0}", companyInfo.EndDate); foreach (ProductionUnit unit in companyInfo.ProductionUnits) { Console.WriteLine(); Console.WriteLine("PNo : {0}", unit.PNo); Console.WriteLine("Main : {0}", unit.Main); Console.WriteLine("Name : {0}", unit.Name); Console.WriteLine("Address : {0}", companyInfo.Address); Console.WriteLine("Zipcode : {0}", companyInfo.Zipcode); Console.WriteLine("City : {0}", companyInfo.City); Console.WriteLine("Protected : {0}", companyInfo.Protected); Console.WriteLine("Phone : {0}", companyInfo.Phone); Console.WriteLine("Email : {0}", companyInfo.Email); Console.WriteLine("Fax : {0}", companyInfo.Fax); Console.WriteLine("StartDate : {0}", companyInfo.StartDate); Console.WriteLine("EndDate : {0}", companyInfo.EndDate); } }
public void GetCompanyInfoFailTest() { var service = new CvrApiService(); CompanyInfo companyInfo = service.GetCompanyInfo("29473610"); Console.WriteLine("Name : {0}", companyInfo.Name); Console.WriteLine("VAT : {0}", companyInfo.VAT); Console.WriteLine("Address : {0}", companyInfo.Address); Console.WriteLine("Zipcode : {0}", companyInfo.Zipcode); Console.WriteLine("City : {0}", companyInfo.City); Console.WriteLine("Protected : {0}", companyInfo.Protected); Console.WriteLine("Phone : {0}", companyInfo.Phone); Console.WriteLine("Email : {0}", companyInfo.Email); Console.WriteLine("Fax : {0}", companyInfo.Fax); Console.WriteLine("StartDate : {0}", companyInfo.StartDate); Console.WriteLine("EndDate : {0}", companyInfo.EndDate); }