public void AddNewHouse() { HouseRepositoryTestClass houseRepositoryTestClass = new HouseRepositoryTestClass(); House house = new House() { Id = Guid.NewGuid(), HouseNumber = "705", Description = "Testing", SocietyId = new Guid("FDE8B053-600E-456F-9E17-8E712D8BD075"), BuildingId = new Guid("13E00D80-C8D1-4392-A449-90E08D1B75B0") }; House addedHouse = houseRepositoryTestClass.AddNewHouse(house); Assert.IsTrue(addedHouse != null); }
public House AddNewHouse(House newHouse) { House house = _HouseRepository.Add(newHouse); return house; }