Ejemplo n.º 1
0
        public void RemoveItem()
        {
            var sut = new TestAggregate(100);

            sut.AddItem("Description", 1, 10.00, true);

            sut.RemoveItem(1);

            Assert.AreEqual(3, sut.Events.Count, "Events");
            Assert.AreEqual(3, sut.Version, "Version");
            Assert.AreEqual(0, sut.Items.Count, "Items");
        }