public void RaiseProductCreatedEvent() { var item = new ProductBuilder().Constructer("20 Gül", "20'li gül demeti", 10, 50D); item.CreatedEvent(); Assert.Single(item.Events); Assert.IsType <ProductCreated>(item.Events.First()); }
public void RaiseProductCreatedEvent() { var item = new ProductBuilder().Constructer("20 Gül", "20'li gül demeti", 10, 50D); item.CreatedEvent(); Assert.Single(item.Events); Assert.IsType <ProductCreated>(item.Events.First()); }