public async void Delete_ShouldDeleteHero() { int heroId = 1; _heroRepositoryMock.Setup(t => t.Delete(It.IsAny <Hero>())) .Verifiable(); await _serviceTest.DeleteAsync(heroId); _heroRepositoryMock.Verify(t => t.Delete(It.IsAny <Hero>()), Times.Once); _heroRepositoryMock.Verify(t => t.SaveChangesAsync(), Times.Once); }