Пример #1
0
        public void DeleteOrder()
        {
            OrderControllerTest Controller = new OrderControllerTest();
            var result = CosmosDbStorage <Order> .DeleteAsync(id);

            Assert.IsNotNull(result);
        }
Пример #2
0
        public void Place_Order()
        {
            OrderControllerTest Controller = new OrderControllerTest();

            var results = CosmosDbStorage <Order> .CreateItemAsync(order);

            Assert.IsNotNull(results);
        }
Пример #3
0
        public void Get_ALL_Orders()
        {
            OrderControllerTest controller = new OrderControllerTest();

            var results = CosmosDbStorage <Order> .GetItemsAsync(o => o.Id != null);

            Assert.IsNotNull(results);
        }