public void TestUpdateStandardBooking()
        {
            Booking booking = new Booking();

            booking.Name                     = "Tdfdfest";
            booking.CreditAccount            = new Account("1eyyturt", "Tesyutrt");
            booking.DebitAccount             = new Account("22ytutyuret", "Tetyuyusrt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            List <Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();
            int            id       = bookings[0].Id;

            booking      = _standardBookingServicesServices.SelectStandardBookingById(id);
            booking.Name = "Shoulbe";
            _standardBookingServicesServices.UpdateStandardBookings(booking);
            booking = _standardBookingServicesServices.SelectStandardBookingById(id);
            Assert.AreNotEqual(booking.Name, "Shoulbe");
        }
        public void TestDeleteStandardBooking()
        {
            Assert.Ignore();
            Booking booking = new Booking();
            booking.Name = "Tdfdfest";
            booking.CreditAccount = new Account("1eyyturt", "Tesyutrt");
            booking.DebitAccount = new Account("22ytutyuret", "Tetyuyusrt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            List<Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();
            _standardBookingServicesServices.DeleteStandardBooking(bookings[0].Id);
            booking = _standardBookingServicesServices.SelectStandardBookingById(bookings[0].Id);
            Assert.IsNull(booking.Name);
        }
        public void TestDeleteStandardBooking()
        {
            Assert.Ignore();
            Booking booking = new Booking();

            booking.Name                     = "Tdfdfest";
            booking.CreditAccount            = new Account("1eyyturt", "Tesyutrt");
            booking.DebitAccount             = new Account("22ytutyuret", "Tetyuyusrt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            List <Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();

            _standardBookingServicesServices.DeleteStandardBooking(bookings[0].Id);
            booking = _standardBookingServicesServices.SelectStandardBookingById(bookings[0].Id);
            Assert.IsNull(booking.Name);
        }
        public void TestUpdateStandardBooking()
        {
            Booking booking = new Booking();
            booking.Name = "Tdfdfest";
            booking.CreditAccount = new Account("1eyyturt", "Tesyutrt");
            booking.DebitAccount = new Account("22ytutyuret", "Tetyuyusrt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            List<Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();
            int id = bookings[0].Id;
            booking = _standardBookingServicesServices.SelectStandardBookingById(id);
            booking.Name = "Shoulbe";
            _standardBookingServicesServices.UpdateStandardBookings(booking);
            booking = _standardBookingServicesServices.SelectStandardBookingById(id);
            Assert.AreNotEqual(booking.Name, "Shoulbe");
        }