public void DeleteRestaurantAsync_Test() { var restaurantDataManager = new Mock <IRestaurantDataManager>(); restaurantDataManager.Setup(x => x.DeleteRestaurantAsync(123)).Returns(Task.CompletedTask); var restaurantRepo = new RestaurantRepository(restaurantDataManager.Object); restaurantRepo.DeleteRestaurantAsync(123).Wait(); restaurantDataManager.VerifyAll(); }