public async Task UpdatePriceDefault() { RealEstateXPOServices realEstate = new RealEstateXPOServices(_uow); await CreateNewBuildingPropertyTest(); Assert.IsTrue(await realEstate.UpdatePricePropertyAsync(1, 20000)); }
public void UpdatePricePropertyDoesNotExist() { RealEstateXPOServices realEstate = new RealEstateXPOServices(_uow); Assert.ThrowsAsync <Exception>(async() => await realEstate.UpdatePricePropertyAsync(0, 2000)); }