public async Task TestDeleteDevice(DeleteDeviceByIdRequest delcom, ObjectResult resultAction, bool elementCreated = false) { Guid createdtransactionId = DeviceComponentsValues.GetDeviceAviability(); delcom.Id = elementCreated == true ? createdtransactionId : delcom.Id; HttpResponseMessage actionResult = await _deviceAPI.DeleteDevice(delcom); base.CheckAssert(actionResult, resultAction); }
public async Task TestUpdateDevice(UpdateDeviceRequest obj, ObjectResult resultAction, bool elementCreated = false) { var createdcompanyId = DeviceComponentsValues.GetDeviceAviability(); obj.Id = elementCreated == true ? createdcompanyId : obj.Id; HttpResponseMessage actionResult = await _deviceAPI.UpdateDevice(obj); base.CheckAssert(actionResult, resultAction); }