Esempio n. 1
0
        public async Task WhiteHouse_Service_Delete_President()
        {
            // Act
            await _whiteHouseService.DeletePresidentAsync("1");

            // Assert
            Assert.False(LocalNotification.HasNotification());
        }
Esempio n. 2
0
        public async Task DeletePresidentAsync(string id)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                RaiseNotification(nameof(id));
            }

            if (!Notification.HasNotification())
            {
                await _whiteHouserService.DeletePresidentAsync(id);
            }
        }