public void TestCreateStandardBooking()
 {
     Assert.Ignore();
     Booking booking = new Booking();
     booking.Name = "Test";
     booking.CreditAccount = new Account("111", "Test");
     booking.DebitAccount = new Account("222", "Test");
     _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
     _standardBookingServicesServices.CreateStandardBooking(booking);
     List<Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();
     Assert.AreEqual(bookings.Count, 1);
 }
        public void TestCreateStandardBooking()
        {
            Assert.Ignore();
            Booking booking = new Booking();

            booking.Name                     = "Test";
            booking.CreditAccount            = new Account("111", "Test");
            booking.DebitAccount             = new Account("222", "Test");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);
            List <Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();

            Assert.AreEqual(bookings.Count, 1);
        }
        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");
        }
        public void TestSelectAllStandardBookings()
        {
            Assert.Ignore();
            Booking booking = new Booking();

            booking.Name                     = "Tefdfst";
            booking.CreditAccount            = new Account("1ert", "Testrt");
            booking.DebitAccount             = new Account("22ret", "Tesrbgt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            booking.Name                     = "Tesfdft1";
            booking.CreditAccount            = new Account("111f1", "Test1");
            booking.DebitAccount             = new Account("2221", "Test1");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

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

            Assert.IsNotEmpty(bookings);
        }
        public void TestSelectAllStandardBookings()
        {
            Assert.Ignore();
            Booking booking = new Booking();
            booking.Name = "Tefdfst";
            booking.CreditAccount = new Account("1ert", "Testrt");
            booking.DebitAccount = new Account("22ret", "Tesrbgt");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            booking.Name = "Tesfdft1";
            booking.CreditAccount = new Account("111f1", "Test1");
            booking.DebitAccount = new Account("2221", "Test1");
            _standardBookingServicesServices = ServicesProvider.GetInstance().GetStandardBookingServices();
            _standardBookingServicesServices.CreateStandardBooking(booking);

            List<Booking> bookings = _standardBookingServicesServices.SelectAllStandardBookings();
            Assert.IsNotEmpty(bookings);
        }
        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");
        }