Exemple #1
0
        public void GetOrder_ById()
        {
            string product = "apple";

            OrderDirectory.TryAddOrder(new Order()
            {
                Product = product, AuthorId = UserProfile1.Id
            });

            int orderId = OrderDirectory.GetAllOrders().First().Id;
            var order   = OrderDirectory.GetOrder(orderId);

            Assert.IsTrue(order.Product == product);
        }