public async Task UpdateAsync_UpdatesEntity() { //Assert //Act await testedService.UpdateAsync(singleEntity); //Assert Mock.Verify(c => c.Update(singleEntity), Times.Once()); Mock.Verify(c => c.SaveChangesAsync(It.IsAny <CancellationToken>()), Times.Once()); }