Beispiel #1
0
        public void Quantity_Should_Decrease(string id)
        {
            var sut    = new IncreaseDecreaseItem(new MemoryBasketsRepository(new Constants().BASKET()));
            var result = sut.Handle(new IncreaseDeacreaseItemMessage {
                BasketId = new Guid(id), ItemId = new Guid(id), Quantity = -1
            });

            result.Quantity.ShouldBe(0);
        }
Beispiel #2
0
 public IncrementDecrementHandlerTests()
 {
     _sut = new IncreaseDecreaseItem(new MemoryBasketsRepository(new Constants().BASKET()));
 }