public void GetElevatorLogs_ShouldMapResultsProperly()
        {
            //Arrange
            var expectedCount = 5;
            var logs          = _fixture.CreateMany <EventLog>(expectedCount);

            _aggregateRepository
            .Setup(s => s.LoadLogs <Elevator>(It.IsAny <int>(), It.IsAny <int>()))
            .Returns(Task.FromResult(logs));

            //Act
            var results = _sut.GetElevatorLogs(_fixture.Create <int>(), _fixture.Create <int>()).Result;

            //Assert
            results.Should().NotBeNull();
            results.ElevatorLogs.Should().NotBeNull().And.HaveCount(expectedCount);
            results.ElevatorLogs.Should().BeEquivalentTo(logs);
        }
 public async Task <ElevatorLogsDto> GetLogs([FromRoute] int id, [FromQuery] int take = 100)
 {
     return(await _elevatorsApiService.GetElevatorLogs(id, take));
 }