Skip to content

Instantly share code, notes, and snippets.

@avegaraju
Created December 23, 2018 22:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save avegaraju/d8c27b1a3b8ef64cb5549e89115e5fca to your computer and use it in GitHub Desktop.
[<Fact>]
let ``find_WhenProductDoesNotExists_ReturnsNone`` () =
let productId = Fixture().Create<int>();
let products = Fixture().CreateMany<Product>()
let result = UpdateProductDimensions.find (productId, products)
result.IsNone.Should().BeTrue("the product id does not exist")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment