Exemplo n.º 1
0
        public void Professional_Service_Delete_Professional()
        {
            // Act
            _profissionalService.DeleteProfessional(new ComposeKey <Guid, decimal>(Guid.Parse("1b92f96f-6a71-4655-a0b9-93c5f6ad9637"), 1));

            // Assert
            Assert.False(LocalNotification.HasNotification());
        }
Exemplo n.º 2
0
        public void DeleteProfessional(ComposeKey <Guid, decimal> keys)
        {
            var professionalId = keys.SecundaryKey;
            var code           = keys.PrimaryKey;

            if (professionalId <= 0)
            {
                RaiseNotification(nameof(professionalId));
            }

            if (code == Guid.Empty)
            {
                RaiseNotification(nameof(code));
            }

            if (!Notification.HasNotification())
            {
                _service.DeleteProfessional(keys);
            }
        }