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)); }
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)); }