Пример #1
0
        public void GetCustomer_CustomerExists_ReturnCustomerFromDB()
        {
            Customer customer = _client.GetCustomerById(basePath, 1).Result;

            Assert.IsNotNull(customer);
            Console.WriteLine(JsonConvert.SerializeObject(customer, Formatting.Indented));

            Assert.That(customer.Id > 0);
            Assert.That(customer.Title, Is.EqualTo("KLM"));
            Assert.That(customer.NumberOfEmployees, Is.EqualTo(8000));
        }