Beispiel #1
0
        public void GetOrderTest()
        {
            var order = orderBUS.GetOrder();

            int collectionCountExpected = 1;
            int collectionCountActual   = order.Count;

            Assert.AreEqual(collectionCountExpected, collectionCountActual);
        }
Beispiel #2
0
        private void buttonRead_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                collection = orderBUS.GetOrder();
                Sum        = orderBUS.GetSum(collection);

                prodList.ItemsSource = collection;
                LeastSum.Text        = "Загальна сума: " + Sum;
            }
            catch (Exception exeption)
            {
                MessagesLabel.Background = new SolidColorBrush(Color.FromRgb(51, 255, 51));
                Messages.Text            = exeption.Message;
            }
        }