public void CanReserveIsConsistentAccrossReplays(Capacity sut, Guid id) { var remaining = sut.Remaining; sut.Reserve(remaining, id); var result = sut.CanReserve(remaining, id); Assert.True(result); }
public void CanReserveReturnsTrueWhenQuantityIsLessThanRemaining(Capacity sut, Guid id) { var lesserQuantity = sut.Remaining - 1; var result = sut.CanReserve(lesserQuantity, id); Assert.True(result); }
public void CanReserveReturnsFalseWhenQuantityIsGreaterThanRemaining(Capacity sut, Guid id) { var greaterQuantity = sut.Remaining + 1; bool result = sut.CanReserve(greaterQuantity, id); Assert.False(result); }
public void CanReserveReturnsTrueWhenQuantityIsEqualToRemaining(Capacity sut, Guid id) { var result = sut.CanReserve(sut.Remaining, id); Assert.True(result); }