public void CreatePropertyTest() { var property = new PropertyRequest() { GroupLogoUrl = "https://photosa.propertyimages.ie/groups/9/0/4/6409/logo.jpg", BedsString = "2 beds", Price = 395000, SizeStringMeters = 52.95, DisplayAddress = "Apt. 16 The Northumberlands, Off Lower Mount Street Dublin 2", PropertyType = "Apartment", BerRating = "D2", MainPhoto = "https://photosa.propertyimages.ie/media/2/3/2/4292232/38e98b8e-645f-4adf-8e57-f927e5769840_l.jpg", // Photos = new List<string>() //{ // "https://photosa.propertyimages.ie/media/2/3/2/4292232/38e98b8e-645f-4adf-8e57-f927e5769840_l.jpg", // "https://photosa.propertyimages.ie/media/2/3/2/4292232/38e98b8e-645f-4adf-8e57-f927e5769840_l.jpg", // "https://photosa.propertyimages.ie/media/2/3/2/4292232/38e98b8e-645f-4adf-8e57-f927e5769840_l.jpg" //} }; var result = _controller.CreateProperty(property); Assert.NotNull(result); }
public void CreateProperty(Client player, string ownerType, PropertyType type, string idOrName, int cost) { if (!AdminController.AdminRankCheck(player, "createproperty")) { return; } PropertyController.CreateProperty(player, ownerType, type, idOrName, cost); }
static void testAPI() { FileController fileC = new FileController(); PropertyController propertyC = new PropertyController(); //File testFile = fileC.CreateNewFile(@"C:\Users\Dorian\Pictures\1605383.jpg", "Illidan Picture"); //testFile = fileC.AddFile(testFile); //fileC.DeleteFile(testFile.Id); Property newProperty = propertyC.CreateProperty("Characters", "The characters that are in the photo", "string"); newProperty = propertyC.AddProperty(newProperty); }
public void createproperty(Client player, string OwnerType, PropertyType type, string IDOrName) { AccountController account = player.getData("ACCOUNT"); if (account == null) { return; } if (!AdminController.AdminRankCheck("createproperty", account)) { return; } PropertyController.CreateProperty(player, OwnerType, type, IDOrName); }
private void SubmitButton_Click(object sender, EventArgs e) { string type = TypeListBox.CheckedItems[0].ToString(); if (type == "Text") { type = "string"; } else if (type == "Number") { type = "int"; } else if (type == "Date, in (dd/mm/yyyy) format") { type = "DateTime"; } Property newProperty = propertyController.CreateProperty(TitleTextBox.Text, DescriptionTextBox.Text, type); propertyController.AddProperty(newProperty); ParentForm.UpdateData(); this.Close(); }
Property InterfaceProperty.CreateProperty(string title, string description, string type) { return(propertyController.CreateProperty(title, description, type)); }