public void AssertOrder( OrderEntity orderEntity, OrderingPartyEntity orderingPartyEntity, SupplierEntity supplierEntity, AddressEntity orderingPartyAddress, ContactEntity orderPartyContact, AddressEntity supplierAddress, ContactEntity supplierContact, IEnumerable <OrderItemEntity> orderItems, IDictionary <(int OrderId, string CatalogueItemId), IList <OrderItemRecipientEntity> > serviceRecipients,
public async Task ThenTheOrderWithOrderIdHasOrganisationAddressData(int orderId, Table table) { var order = await OrderEntity.FetchOrderByOrderId(settings.ConnectionString, orderId); var orderingParty = await OrderingPartyEntity.FetchById(settings.ConnectionString, order.OrderingPartyId); var actual = await AddressEntity.FetchAddressById(settings.ConnectionString, orderingParty.AddressId); table.CompareToInstance(actual); }
public async Task ThenTheOrderingPartyWithIdHasTheFollowingDetails(Guid id, Table table) { var actual = await OrderingPartyEntity.FetchById(settings.ConnectionString, id); table.CompareToInstance(actual); }