예제 #1
0
        public void GetBucketItems_EmptyBucket_ShouldReturnEmptyList()
        {
            var context = new ApplicationDbContext(_testcs);
            var service = new BucketService(context);

            var items = service.GetBucketItems("Te"); // User doesn't exist;

            items.Wait();
            var itemsCount = items.Result.Count();

            Assert.That(itemsCount, Is.EqualTo(0));
        }
예제 #2
0
        public void GetBucketItems_ItemsInBucket_ShouldReturnListOfOrderItem()
        {
            var context = new ApplicationDbContext(_testcs);
            var service = new BucketService(context);

            var items = service.GetBucketItems("Test");

            items.Wait();
            var itemsCount = items.Result.Count();

            Assert.That(itemsCount, Is.EqualTo(2));
        }