public async Task TestAddImage_GetValidImage_EditImageSuccessfully() { // Arrange imageService.Setup(i => i.EditImageAsync(imageModel)); AdminController controller = new AdminController(filmService.Object, mapper, imageService.Object); // Act var result = await controller.AddImage(editImageModel) as OkResult; // Assert Assert.NotNull(result); Assert.Equal(200, result.StatusCode); }