public async Task AddSellerToShopTestAsync() { // Arrange Mock <ShopSeller> mockShopSeller = new Mock <ShopSeller>(); Mock <AddSellerToShopDto> mockAddSellerToShopDto = new Mock <AddSellerToShopDto>(); ShopController controller = new ShopController(mockShopService.Object); // Act var result = await controller.AddSellerToShop(mockAddSellerToShopDto.Object); var okResult = Assert.IsType <OkObjectResult>(result); // Assert Assert.IsType <OkObjectResult>(result); mockShopService.Verify( mock => mock.AddSellerToShop(mockShopSeller.Object), Times.Never()); }