public void Cleanup() { DC = null; DM = null; DS = null; person = null; location = null; stationaryNumber = null; mobileNumber = null; contact = null; }
public void Startup() { DC = new DataContext(server, database); DM = new DataManagement(DC); DS = new DataService(DM); location = new Location(city, zipCode); person = new Person(name, surname, location); stationaryNumber = new StationaryPhoneNumber(sNumber); mobileNumber = new MobilePhoneNumber(mNumber); contact = new Contact(person, mobileNumber); }