public void Deve_Adicionar_Domain_Event() { var instance = new EntityDerivedClass(); var domainEvent = new Mock <INotification>(); instance.SimulateEvent(domainEvent.Object); Assert.Single(instance.DomainEvents); }
public void Deve_Gerar_UID_Ao_Instanciar() { var instance = new EntityDerivedClass(); Assert.NotEqual(Guid.Empty, instance.Id); }