diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-01-21 19:30:25 +0200 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-01-21 19:30:25 +0200 |
| commit | 4417b86ccd570f1f5637afc7460ef70fcf1c47c2 (patch) | |
| tree | 57494e95274e7725334c9176c4c2901ef760a11d /src/DevHive.Services/Services | |
| parent | 9e86699c9b3aff17e0c4d19850b41b792a9625ef (diff) | |
| download | DevHive-4417b86ccd570f1f5637afc7460ef70fcf1c47c2.tar DevHive-4417b86ccd570f1f5637afc7460ef70fcf1c47c2.tar.gz DevHive-4417b86ccd570f1f5637afc7460ef70fcf1c47c2.zip | |
Refactored technology layer tests to be async
Diffstat (limited to 'src/DevHive.Services/Services')
| -rw-r--r-- | src/DevHive.Services/Services/TechnologyService.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs index 1b2f0ff..88ed702 100644 --- a/src/DevHive.Services/Services/TechnologyService.cs +++ b/src/DevHive.Services/Services/TechnologyService.cs @@ -20,7 +20,6 @@ namespace DevHive.Services.Services } #region Create - public async Task<Guid> Create(CreateTechnologyServiceModel technologyServiceModel) { if (await this._technologyRepository.DoesTechnologyNameExistAsync(technologyServiceModel.Name)) @@ -29,7 +28,7 @@ namespace DevHive.Services.Services Technology technology = this._technologyMapper.Map<Technology>(technologyServiceModel); bool success = await this._technologyRepository.AddAsync(technology); - if(success) + if (success) { Technology newTechnology = await this._technologyRepository.GetByNameAsync(technologyServiceModel.Name); return newTechnology.Id; @@ -40,7 +39,6 @@ namespace DevHive.Services.Services #endregion #region Read - public async Task<CreateTechnologyServiceModel> GetTechnologyById(Guid id) { Technology technology = await this._technologyRepository.GetByIdAsync(id); @@ -53,7 +51,6 @@ namespace DevHive.Services.Services #endregion #region Update - public async Task<bool> UpdateTechnology(UpdateTechnologyServiceModel updateTechnologyServiceModel) { if (!await this._technologyRepository.DoesTechnologyExistAsync(updateTechnologyServiceModel.Id)) |
