public async Task Should_Call_Repository_On_CreateMovieAsync() { // Arrange Mock <IMoviesRepository> mockMovieRepository = new Mock <IMoviesRepository>(MockBehavior.Loose); MoviesService systemUnderTest = new MoviesService(mockMovieRepository.Object); // Act await systemUnderTest.CreateMovieAsync(new Models.Movie()); // Assert mockMovieRepository.Verify(x => x.CreateMovieAsync(It.IsAny <Movie>()), Times.Once()); }