public async Task GetDataCollector_WhenDataCollectorExists_ShouldReturnSuccess() { // Act var result = await _dataCollectorService.Get(DataCollectorWithoutReportsId); // Assert result.IsSuccess.ShouldBeTrue(); result.Value.Id.ShouldBe(DataCollectorWithoutReportsId); }
public async Task <Result <GetDataCollectorResponseDto> > Get(int dataCollectorId) => await _dataCollectorService.Get(dataCollectorId);