public async Task RemoveDataCollector_WhenDataCollectorDoesNotExist_ShouldReturnError() { // Act var result = await _dataCollectorService.Delete(999); // Assert result.IsSuccess.ShouldBeFalse(); result.Message.Key.ShouldBe(ResultKey.DataCollector.DataCollectorNotFound); }
public async Task <Result> Delete(int dataCollectorId) => await _dataCollectorService.Delete(dataCollectorId);