Esempio n. 1
0
        public void Deve_Adicionar_Domain_Event()
        {
            var instance    = new EntityDerivedClass();
            var domainEvent = new Mock <INotification>();

            instance.SimulateEvent(domainEvent.Object);
            Assert.Single(instance.DomainEvents);
        }
Esempio n. 2
0
        public void Deve_Gerar_UID_Ao_Instanciar()
        {
            var instance = new EntityDerivedClass();

            Assert.NotEqual(Guid.Empty, instance.Id);
        }