static void Main(string[] args) { BE.Guest Aaron = new BE.Guest { FirstName = "Aaron", LastName = "Russell", ID = 325647896, Email = "*****@*****.**" }; BE.GuestRequest GR1 = new BE.GuestRequest { GuestRequestKey = 10000010, Totalcomission = 0, GuestPersonalDetails = Aaron, Status = BE.DemandStatusTypes.Open, RegistrationDate = new DateTime(2020, 4, 10), EntryDate = new DateTime(2020, 5, 15), ReleaseDate = new DateTime(2020, 6, 20), Areas = new List <BE.AreaTypes>() { BE.AreaTypes.North, BE.AreaTypes.Center }, SunbAreas = new List <String>() { "Ranana", "Modiin" }, Type = BE.HostingUnitTypes.HotelRoom, Adults = 3, Children = 4, Pool = BE.RequirementTypes.No, HotTub = BE.RequirementTypes.Yes, Garden = BE.RequirementTypes.Yes, ChildrenAttractions = BE.RequirementTypes.Yes }; BE.Host H = new BE.Host(); BE.HostingUnit HU = new BE.HostingUnit(); BE.Order O = new BE.Order(); BL.BL_imp bl = new BL.BL_imp(); bl.AddGuestRequest(GR1); bl.UpdateGuestRequest(BE.DemandStatusTypes.Expired, 10000010); Console.WriteLine("aaaaaaaaaaa working ok"); Console.ReadKey(); }
static DataSource() { #region start GuestRequests DSGuestRequests = new List <BE.GuestRequest>(); DSHostingUnits = new List <BE.HostingUnit>(); DSOrders = new List <BE.Order>(); BE.Guest Guest1 = new BE.Guest { FirstName = "Amir", LastName = "Yanai", ID = 666995201, Email = "*****@*****.**", }; BE.GuestRequest GR1 = new BE.GuestRequest { GuestRequestKey = 11111111, Totalcomission = 0, GuestPersonalDetails = Guest1, Status = BE.DemandStatusTypes.Open, RegistrationDate = new DateTime(2020, 1, 1), EntryDate = new DateTime(2020, 3, 16), ReleaseDate = new DateTime(2020, 4, 25), Areas = new List <BE.AreaTypes>() { BE.AreaTypes.Jerusalem, BE.AreaTypes.North }, SunbAreas = new List <String>() { "Maale Edomim", "Modiin" }, Type = BE.HostingUnitTypes.BoardingHouse, Adults = 1, Children = 5, Pool = BE.RequirementTypes.Yes, HotTub = BE.RequirementTypes.No, Garden = BE.RequirementTypes.Yes, ChildrenAttractions = BE.RequirementTypes.No }; DSGuestRequests.Add(GR1); #endregion #region start Orders #endregion #region start HostingUnits BE.Host host1 = new BE.Host { FirstName = "David", LastName = "Cohen", PhoneNumber = "+972555555555", Email = "*****@*****.**", }; BE.Host host2 = new BE.Host { FirstName = "Binyamin", LastName = "Israel", PhoneNumber = "+972666666666", Email = "*****@*****.**", }; BE.HostingUnit hostingUnit1 = new BE.HostingUnit { HostingUnitKey = BE.Configuration.getHUKey(), Owner = host1, OwnerName = host1.FirstName + " " + host1.LastName, UnitType = BE.HostingUnitTypes.HostingRoom, UnitAreaType = BE.AreaTypes.Center, }; BE.HostingUnit hostingUnit2 = new BE.HostingUnit { HostingUnitKey = BE.Configuration.getHUKey(), Owner = host1, OwnerName = host1.FirstName + " " + host1.LastName, UnitType = BE.HostingUnitTypes.HotelRoom, UnitAreaType = BE.AreaTypes.Jerusalem, }; BE.HostingUnit hostingUnit3 = new BE.HostingUnit { HostingUnitKey = BE.Configuration.getHUKey(), Owner = host2, OwnerName = host2.FirstName + " " + host2.LastName, UnitType = BE.HostingUnitTypes.BoardingHouse, UnitAreaType = BE.AreaTypes.South, }; BE.HostingUnit hostingUnit4 = new BE.HostingUnit { HostingUnitKey = BE.Configuration.getHUKey(), Owner = host2, OwnerName = host2.FirstName + " " + host2.LastName, UnitType = BE.HostingUnitTypes.Tent, UnitAreaType = BE.AreaTypes.North, }; DSHostingUnits.Add(hostingUnit1); DSHostingUnits.Add(hostingUnit2); DSHostingUnits.Add(hostingUnit3); DSHostingUnits.Add(hostingUnit4); #endregion }