public void Should_Delete_A_Specialty() { DeleteSpecialtyCommand command = new DeleteSpecialtyCommand() { SpecialtyId = specialtyRepository.specialties[0].Id }; Assert.IsNotNull(_handler.Handler(command)); }
public ICommandResult Handler(DeleteSpecialtyCommand command) { _specialtyRepository.Delete(command.SpecialtyId); return(new DeleteSpecialtyCommandResult(command.SpecialtyId, true)); }