Exemple #1
0
 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);
        }
Exemple #3
0
        public async Task ThenTheOrderingPartyWithIdHasTheFollowingDetails(Guid id, Table table)
        {
            var actual = await OrderingPartyEntity.FetchById(settings.ConnectionString, id);

            table.CompareToInstance(actual);
        }