public void SetUp() { cadastre = new Cadastre("Trešnjevka", "332134", new City(10000, "Zagreb")); cadastralParticle = new CadastralParticle(cadastre, "123", 20, "opis"); landRegistry = new LandRegistry(cadastralParticle); var buildingManager = new BuildingManager(new LegalPerson("12345678903", "Upravitelj")); building = new Building(landRegistry, buildingManager); partitionSpace1 = landRegistry.CreatePartitionSpace(23, "Stan 1", new PhysicalPerson("12345678903", "Mile1", "Milic"), 20); var apartment1 = new Apartment(partitionSpace1); building.AddApartment(apartment1); partitionSpace2 = landRegistry.CreatePartitionSpace(23, "Stan 2", new PhysicalPerson("12345678904", "Mile2", "Milic"), 20); var apartment2 = new Apartment(partitionSpace2); building.AddApartment(apartment2); partitionSpace3 = landRegistry.CreatePartitionSpace(23, "Stan 3", new PhysicalPerson("12345678905", "Mile3", "Milic"), 11); var apartment3 = new Apartment(partitionSpace1); building.AddApartment(apartment3); partitionSpace4 = landRegistry.CreatePartitionSpace(23, "Stan 4", new PhysicalPerson("12345678906", "Mile4", "Milic"), 49); var apartment4 = new Apartment(partitionSpace1); building.AddApartment(apartment4); }
/// <summary> /// Konstruktor /// </summary> /// <param name="cadastralParticle">katastarska cestica</param> /// <param name="ordinalNumber">redni broj etaze</param> /// <param name="surfaceArea">povrsina etaziranog prostora</param> /// <param name="description">opis etaziranog prostra</param> internal PartitionSpace(AbstractCadastralParticle cadastralParticle, int ordinalNumber, decimal surfaceArea, string description) { this.cadastralParticle = cadastralParticle; this.ordinalNumber = ordinalNumber; SurfaceArea = surfaceArea; Description = description; Owner = null; shareOfTotalOwnership = 0; }
public void SetUp() { cadastre = new Cadastre("Trešnjevka", "332134", new City(10000, "Zagreb")); cadastralParticle = new CadastralParticle(cadastre, "123", 20, "opis"); landRegistry = new LandRegistry(cadastralParticle); }