Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2023 19:03
What would you like to do?
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