예제 #1
0
        public async Task WhiteHouse_Service_Delete_President()
        {
            // Act
            await _whiteHouseService.DeletePresidentAsync("1");

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

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