public void ShouldNotGetBagGivenUsedTicked()
        {
            var cabinet = new Cabinet(1);
            var bag = new Bag();
            var ticket = cabinet.Store(bag);
            var actualBag = cabinet.Pick(ticket);
            Assert.AreEqual(bag, actualBag);

            var secondBag = cabinet.Pick(ticket);
            Assert.IsNull(secondBag);
        }
 public void ShouldGetBagSuccessfullyGivenUnusedTicked()
 {
     var cabinet = new Cabinet(1);
     var bag = new Bag();
     var ticket = cabinet.Store(bag);
     var actualBag = cabinet.Pick(ticket);
     Assert.AreSame(bag, actualBag);
 }