Skip to content

Instantly share code, notes, and snippets.

@vkhorikov
Created July 15, 2015 00:39
Show Gist options
  • Save vkhorikov/a6651aacc24f467eb166 to your computer and use it in GitHub Desktop.
Save vkhorikov/a6651aacc24f467eb166 to your computer and use it in GitHub Desktop.
[Fact]
public void Amount_shows_order_amount()
{
// Arrange
var order = new Order();
order.AddLine(10, new Product());
order.AddLine(20, new Product());
// Act
decimal amount = order.Amount;
// Assert
Assert.Equal(30, amount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment