public void CalculatePrice(double expectedItemPrice, int quantity, double productPrice, int quantityPerPrice) { var orderLine = new OrderLine() { Quantity = quantity, Product = new ProductEntity() { Price = productPrice, QuantityPerPrice = quantityPerPrice } }; orderLine.CalculatePrice(); orderLine.Price.Should().Be(expectedItemPrice); }