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 TestWithDelegate() | |
{ | |
var utcNow = new DateTimeOffset(new DateTime(2022, 11, 28)); | |
var obj = new OrderServiceDelegate(_mockBasketRepo.Object, _mockCatalogRepo.Object, _mockOrderRepo.Object, | |
_mockUriComposer.Object, () => utcNow); | |
var address = new Address("120 Freidrich Lane", "Austin", "TX", "US", "78744"); | |
var order = await obj.CreateOrderAsync(_basketId, address); | |
Assert.Equal(utcNow, order.OrderDate); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment