public void ListTenanciesWillAssignDefaultValuesToLimitAndCursor()
        {
            var stubbedResponse = new ListTenanciesResponse
            {
                Tenancies = _fixture.CreateMany <TenancyInformationResponse>().ToList()
            };

            _listTenancies
            .Setup(x => x.Execute(20, 0, It.IsAny <string>(),
                                  It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <string>()))
            .Returns(stubbedResponse);
            var response = _classUnderTest.ListTenancies(new QueryParameters()) as ObjectResult;

            response.StatusCode.Should().Be(200);
            response.Value.Should().BeEquivalentTo(stubbedResponse);
        }
        public void ListTenanciesReturnsRecordsObtainedFromTheUseCase()
        {
            var queryParameters = new QueryParameters
            {
                Limit  = _fixture.Create <int>(),
                Cursor = _fixture.Create <int>()
            };
            var stubbedResponse = new ListTenanciesResponse
            {
                Tenancies = _fixture.CreateMany <TenancyInformationResponse>().ToList()
            };

            _listTenancies
            .Setup(x => x.Execute(queryParameters.Limit, queryParameters.Cursor, It.IsAny <string>(),
                                  It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <string>()))
            .Returns(stubbedResponse);
            var response = _classUnderTest.ListTenancies(queryParameters) as ObjectResult;

            response.StatusCode.Should().Be(200);
            response.Value.Should().BeEquivalentTo(stubbedResponse);
        }