示例#1
0
        public async Task GetDataCollector_WhenDataCollectorExists_ShouldReturnSuccess()
        {
            // Act
            var result = await _dataCollectorService.Get(DataCollectorWithoutReportsId);

            // Assert
            result.IsSuccess.ShouldBeTrue();
            result.Value.Id.ShouldBe(DataCollectorWithoutReportsId);
        }
示例#2
0
 public async Task <Result <GetDataCollectorResponseDto> > Get(int dataCollectorId) =>
 await _dataCollectorService.Get(dataCollectorId);