public override async Task <KundeDto> DeleteKunde(KundeDto request, ServerCallContext context) { var kunde = request.ConvertToEntity(); var response = await kundeManager.DeleteKunde(kunde); return(response.ConvertToDto()); }
public void InsertAndDeleteKundeTest() { Kunde someDude = new Kunde { Nachname = "DUDE!", Vorname = "Bla", Geburtsdatum = DateTime.Today }; Kunde neu = KundeManager.InsertKunde(someDude); Kunde sameDude = KundeManager.GetKundeById(neu.Id); Assert.Equal("DUDE!", someDude.Nachname); Assert.Equal("DUDE!", sameDude.Nachname); KundeManager.DeleteKunde(neu); }
public void DeleteKunde(KundeDto kundeDto) { WriteActualMethod(); KundeManager.DeleteKunde(DtoConverter.ConvertToEntity(kundeDto)); }