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

            // Assert
            Assert.False(LocalNotification.HasNotification());
        }
예제 #2
0
        public async Task <IActionResult> Delete(string id)
        {
            await _whiteHouseAppService.DeletePresidentAsync(id);

            return(CreateResponse <PresidentDto, string>()
                   .FromErrorEnum(PresidentDto.Error.DeletePresident)
                   .WithMessage(AppConsts.LocalizationSourceName, PresidentDto.Error.DeletePresident)
                   .Build());
        }