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="cadastre">katastar kojemu pripada katastarska cestica</param> /// <param name="numberOfCadastralParticle">broj katastarske cestice</param> /// <param name="surfaceArea">povrsina katastarske cestice</param> /// <param name="description">opis katastarske cestice</param> public CadastralParticle(Cadastre cadastre, string numberOfCadastralParticle, decimal surfaceArea, string description) : base(cadastre) { NumberOfCadastralParticle = numberOfCadastralParticle; SetSurfaceArea(surfaceArea); SetDescription(description); }
/// <summary> /// Konstruktor /// </summary> /// <param name="cadastre">katastar kojemu pripada katastarska cestica</param> /// <param name="numberOfCadastralParticle">broj katastarske cestice</param> public CadastralParticleComposite(Cadastre cadastre, string numberOfCadastralParticle) : base(cadastre) { NumberOfCadastralParticle = numberOfCadastralParticle; cadastralParticles = new List<CadastralParticle>(); }
public static Cadastre getCadastre() { Cadastre cadastreForMock = new Cadastre("Trešnjevka", "12354", getCity()); Mock<ICadastresRepository> cadastresRepositoryMock = new Mock<ICadastresRepository>(); cadastresRepositoryMock.Setup(x => x.GetByMbr("12354")).Returns(cadastreForMock); return cadastresRepositoryMock.Object.GetByMbr("12345"); }
public void SetUp() { cadastre = new Cadastre("Trešnjevka", "332134", new City(10000, "Zagreb")); cadastralParticle = new CadastralParticle(cadastre, "123", 20, "opis"); landRegistry = new LandRegistry(cadastralParticle); }
public void SetUp() { cadastre = new Cadastre("Trešnjevka", "332134", new City(10000, "Zagreb")); }
/// <summary> /// Konstruktor /// </summary> /// <param name="cadastre">katastar</param> protected AbstractCadastralParticle(Cadastre cadastre) { this.cadastre = cadastre; }