Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created March 16, 2023 18:47
Show Gist options
  • Save dcomartin/b0653b94fc6bf58ffb09aeb19794c074 to your computer and use it in GitHub Desktop.
Save dcomartin/b0653b94fc6bf58ffb09aeb19794c074 to your computer and use it in GitHub Desktop.
[Fact]
public async Task TestIsFlaky()
{
var obj = new OrderService(_mockBasketRepo.Object, _mockCatalogRepo.Object, _mockOrderRepo.Object, _uriComposer.Object);
var address = new Address("120 Freidrich Lane", "Austin", "TX", "US", "78744");
var order = await obj.CreateOrderAsync(_basketId, address);
Assert.Equal(address, order.ShipToAddress);
// This is Flaky
Assert.Equal(DateTime.UtcNow, order.OrderDate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment