public void OneTimeSetUp() { var a = new Agent { Name = "TestAgent" }; var o = new Office(a) { Name = "Head Office" }; _property = new RentalProperty(o); }
public void OneTimeSetup() { _agent1 = new Agent(); _agent2 = new Agent(); var office1 = new Office(_agent1); var office2 = new Office(_agent2); _adminUser = new User(null, UserType.admin); _managerUserAgent1 = new User(_agent1, UserType.manager); _employeeUserAgent1 = new User(_agent1, UserType.employee); _tenantUserAgent1 = new User(_agent1, UserType.tenant); _propertyAgent1 = new RentalProperty(office1); _propertyAgent2 = new RentalProperty(office2); _authorisationService = new AuthorisationService(); }