public async Task ShouldDeleteWhenDomainDeletedReceived()
        {
            string        hostName = "testhostname";
            MxHostDeleted message  = new MxHostDeleted(hostName);

            await _tlsEntity.Handle(message);

            A.CallTo(() => _dao.Delete(hostName)).MustHaveHappenedOnceExactly();
        }
Exemple #2
0
        public async Task Handle(MxHostDeleted message)
        {
            await _dao.Delete(message.Id);

            _log.LogInformation($"Deleted TLS entity with id: {message.Id}.");
        }