public async Task Handle(DomainDeleted message) { string domain = message.Id.ToLower(); await _dkimSchedulerDao.Delete(domain); _log.LogInformation($"Deleted schedule for DKIM entity with id: {domain}."); }
public async Task ItShouldDeleteTheSpfState() { await _handler.Handle(new DomainDeleted("ncsc.gov.uk")); A.CallTo(() => _dao.Delete(A <string> ._)).MustHaveHappenedOnceExactly(); }