public void TestGetExactOptionService() { //Arrange _helper._mockProductOptionsTable.Clear(); _helper._mockProductOptionsTable.Add(_testProductOption); //Act var result = _testService.GetExactOption(_testProduct.Id, _testProductOption.Id); //Assert Assert.AreEqual(result.Id, _testProductOption.Id); Assert.AreEqual(result.Description, _testProductOption.Description); Assert.AreEqual(result.Name, _testProductOption.Name); Assert.AreEqual(result.ProductId, _testProduct.Id); }
public ProductOptionModel GetOption(Guid productId, Guid optionId) { return(_productOptionservice.GetExactOption(productId, optionId)); }