Example #1
0
            public void GetBookingEmailRequestSettingsReturnsCorrectForMyWebOrWls()
            {
                bool isMyWebOrWls;
                bool temp;

                var order = new Order
                {
                    IntegrationType = IntegrationTypeEnum.WhiteLabel,
                    LeadGuest = new Guest()
                };

                var emailManager = new EmailManager();

                emailManager.GetBookingEmailRequestSettings(order, out temp, out isMyWebOrWls, out temp);

                Assert.IsTrue(isMyWebOrWls, "Order is not for MyWeb or WLS");
            }
Example #2
0
            public void GetBookingEmailRequestSettingsReturnsCorrectForOta()
            {
                bool isOtaBooking;
                bool temp;

                var order = new Order
                                {
                                    IntegrationType = IntegrationTypeEnum.Push,
                                    LeadGuest = new Guest()
                                };

                var emailManager = new EmailManager();

                emailManager.GetBookingEmailRequestSettings(order, out isOtaBooking, out temp, out temp);

                Assert.IsTrue(isOtaBooking, "Order is not an OTA booking");
            }
Example #3
0
            public void GetBookingEmailRequestSettingsReturnsCorrectForCustomerRequest()
            {
                bool isCustomerRequested;
                bool temp;

                var order = new Order
                {
                    LeadGuest = new Guest
                                    {
                                        Email = "*****@*****.**",
                                        IsConfirmationEmailToBeSent = true
                                    }
                };

                var emailManager = new EmailManager();

                emailManager.GetBookingEmailRequestSettings(order, out temp, out temp, out isCustomerRequested);

                Assert.IsTrue(isCustomerRequested, "Order has not been requested by the customer");
            }