public void Teardown() { this.test = null; this.options = null; this.newProp = null; this.pA = null; }
public void Init() { this.test = new Landlord(); this.options = new DbContextOptionsBuilder <PropertiesContext>().UseInMemoryDatabase(databaseName: "Integration Properties Test").Options; this.newProp = new Property { ID = 10, AddressLine1 = "hello", AddressLine2 = "World", Description = "Cool", FileNames = null, Name = "hien", Owner = null, Rent = 100, SpacesAvailable = 2, TotalSpaces = 6 }; this.pA = new PropertyApplication { Applicant = this.test, ApprovedBy = "hien", IsApproved = true, Property = this.newProp }; }
public PropertyController(PropertyApplication propertyApplication) : base(propertyApplication) { this._propertyApplication = propertyApplication; }