public async void GetOptionByProductIdAndOptionIdAsync_ShouldReturnOption() { // Arrange var expectedResult = new ProductOption() { Name = "option name" }; var productId = Guid.NewGuid(); OptionRepositoryMock.Setup(x => x.GetOptionByProductIdAndOptionIdAsync(productId, expectedResult.Id)).ReturnsAsync(expectedResult); // Act var result = await ServiceTest.GetOptionByProductIdAndOptionIdAsync(productId, expectedResult.Id); // Assert Assert.Equal(expectedResult, result); }