private void AssertCreateSingleSessionBookingData(SingleSessionBookingData booking, ExpectedStandaloneSession session, ExpectedCustomer customer, string paymentStatus) { Assert.That(booking.id, Is.InstanceOf <Guid>()); Assert.That(booking.parentId, Is.Null); Assert.That(booking.session.id, Is.EqualTo(session.Id)); Assert.That(booking.session.name, Is.EqualTo(session.Description)); Assert.That(booking.customer.id, Is.EqualTo(customer.Id)); Assert.That(booking.customer.name, Is.EqualTo(string.Format("{0} {1}", customer.FirstName, customer.LastName))); Assert.That(booking.paymentStatus, Is.EqualTo(paymentStatus)); Assert.That(booking.hasAttended, Is.Null); }
protected void AssertGetSingleSessionBooking(SingleSessionBookingData booking, ExpectedStandaloneSession session, ExpectedCustomer expectedCustomer) { Assert.That(booking.id, Is.InstanceOf <Guid>()); Assert.That(booking.parentId, Is.Null); Assert.That(booking.session.id, Is.EqualTo(session.Id)); Assert.That(booking.session.name, Is.EqualTo(session.Description)); Assert.That(booking.customer.id, Is.EqualTo(expectedCustomer.Id)); Assert.That(booking.customer.name, Is.EqualTo(string.Format("{0} {1}", expectedCustomer.FirstName, expectedCustomer.LastName))); Assert.That(booking.price, Is.EqualTo(session.Pricing.sessionPrice)); Assert.That(booking.paymentStatus, Is.EqualTo(Constants.PAYMENT_STATUS_PENDING_INVOICE)); Assert.That(booking.hasAttended, Is.Null); }
protected void AssertCreateSingleSessionOnlineBooking(SingleSessionBookingData booking, ExpectedStandaloneSession session, ExpectedCustomer customer) { AssertCreateSingleSessionBookingData(booking, session, customer, Constants.PAYMENT_STATUS_PENDING_PAYMENT); }