-
-
Save dcomartin/0659b8ffc8e568c6adb44a39341789ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public async Task TestWithValue() | |
{ | |
var utcNow = new DateTimeOffset(new DateTime(2022, 11, 28)); | |
var obj = new OrderService(_mockBasketRepo.Object, _mockCatalogRepo.Object, _mockOrderRepo.Object, _mockUriComposer.Object); | |
var address = new Address("120 Freidrich Lane", "Austin", "TX", "US", "78744"); | |
var order = await obj.CreateOrderAsync(_basketId, address, utcNow); | |
Assert.Equal(utcNow, order.OrderDate); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment