public async Task GetSolutionComputeResourcesPaginatedAsync_ValidParameters_ExpectedResult()
        {
            IUKFastDRaaSClient client = Substitute.For <IUKFastDRaaSClient>();

            client.GetPaginatedAsync <ComputeResource>(
                "/draas/v1/solutions/00000000-0000-0000-0000-000000000000/compute-resources", null).Returns(Task.Run(() =>
                                                                                                                     new Paginated <ComputeResource>(client, "/draas/v1/solutions/00000000-0000-0000-0000-000000000000/compute-resources", null,
                                                                                                                                                     new ClientResponse <IList <ComputeResource> >()
            {
                Body = new ClientResponseBody <IList <ComputeResource> >()
                {
                    Data = new List <ComputeResource>()
                    {
                        new ComputeResource(),
                        new ComputeResource()
                    }
                }
            })));

            var ops              = new ComputeResourceOperations <ComputeResource>(client);
            var solutionID       = "00000000-0000-0000-0000-000000000000";
            var computeResources = await ops.GetSolutionComputeResourcesPaginatedAsync(solutionID);

            Assert.AreEqual(2, computeResources.Items.Count);
        }
 public async Task GetSolutionComputeResourcesPaginatedAsync_InvalidSolutionID_ThrowsUKFastClientValidationException()
 {
     var ops = new ComputeResourceOperations <ComputeResource>(null);
     await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() =>
                                                                         ops.GetSolutionComputeResourcesPaginatedAsync(""));
 }