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

            table.CompareToInstance(actual);
        }