-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework device models/command controllers to use database #1226 #1241
Rework device models/command controllers to use database #1226 #1241
Conversation
Codecov ReportBase: 87.96% // Head: 88.24% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1241 +/- ##
==========================================
+ Coverage 87.96% 88.24% +0.28%
==========================================
Files 217 222 +5
Lines 6920 6830 -90
==========================================
- Hits 6087 6027 -60
+ Misses 833 803 -30
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
var deviceModelId = Fixture.Create<string>(); | ||
|
||
_ = this.mockDeviceModelRepository.Setup(repository => repository.GetByIdAsync(deviceModelId)) | ||
.ReturnsAsync((DeviceModel)null); |
Check warning
Code scanning / CodeQL
Useless upcast
_ = this.mockDeviceProvisioningServiceManager.Setup(manager => | ||
manager.CreateEnrollmentGroupFromModelAsync(deviceModelDto.ModelId, deviceModelDto.Name, | ||
It.IsAny<TwinCollection>())) | ||
.ReturnsAsync((EnrollmentGroup)null); |
Check warning
Code scanning / CodeQL
Useless upcast
9920025
to
17b7f18
Compare
_ = this.mockDeviceProvisioningServiceManager.Setup(manager => | ||
manager.CreateEnrollmentGroupFromModelAsync(deviceModelDto.ModelId, deviceModelDto.Name, | ||
It.IsAny<TwinCollection>())) | ||
.ReturnsAsync((EnrollmentGroup)null); |
Check warning
Code scanning / CodeQL
Useless upcast
var deviceModelDto = Fixture.Create<DeviceModelDto>(); | ||
|
||
_ = this.mockDeviceModelRepository.Setup(repository => repository.GetByIdAsync(deviceModelDto.ModelId)) | ||
.ReturnsAsync((DeviceModel)null); |
Check warning
Code scanning / CodeQL
Useless upcast
var deviceModelDto = Fixture.Create<DeviceModelDto>(); | ||
|
||
_ = this.mockDeviceModelRepository.Setup(repository => repository.GetByIdAsync(deviceModelDto.ModelId)) | ||
.ReturnsAsync((DeviceModel)null); |
Check warning
Code scanning / CodeQL
Useless upcast
Description
What's new?
What kind of change does this PR introduce?