Beispiel #1
0
        internal static Task <GetAppSummaryResponse> CustomGetAppSummary(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, Guid?arg2)
        {
            return(Task.Factory.StartNew <GetAppSummaryResponse>(() => {
                switch (callNumber)
                {
                case 0:
                    {
                        callNumber += 1;
                        return new GetAppSummaryResponse()
                        {
                            State = "PENDING", RunningInstances = 0
                        };
                    }

                case 1:
                    {
                        callNumber += 1;
                        return new GetAppSummaryResponse()
                        {
                            State = "STAGED", RunningInstances = 0
                        };
                    }

                case 2:
                    {
                        return new GetAppSummaryResponse()
                        {
                            State = "STARTED", RunningInstances = 1
                        };
                    }

                default: { return new GetAppSummaryResponse(); }
                }
            }));
        }
Beispiel #2
0
 internal static Task <UpdateAppResponse> CustomUpdateApp(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, Guid?arg2, UpdateAppRequest arg3)
 {
     return(Task.Factory.StartNew <UpdateAppResponse>(() =>
     {
         return new UpdateAppResponse()
         {
             Name = "TestApp"
         };
     }));
 }
Beispiel #3
0
 internal static Task <CreateAppResponse> CustomCreateApp(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, CreateAppRequest arg2)
 {
     return(Task.Factory.StartNew <CreateAppResponse>(() =>
     {
         return new CreateAppResponse()
         {
             EntityMetadata = new Metadata(), Name = "testApp"
         };
     }));
 }
Beispiel #4
0
 internal static Task <PagedResponseCollection <ListAllServiceBindingsForAppResponse> > CustomListAllServiceBindingsForApp(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, Guid?arg2)
 {
     return(Task.Factory.StartNew <PagedResponseCollection <ListAllServiceBindingsForAppResponse> >(() =>
     {
         return new PagedResponseCollection <ListAllServiceBindingsForAppResponse>();
     }));
 }
Beispiel #5
0
        internal static Task CustomDeleteApp(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, Guid?arg2)
        {
            var task = Task.Run(() => { });

            return(task);
        }
        private Task <AssociateRouteWithAppResponse> CustomAssociate(CloudController.V2.Client.Base.AbstractAppsEndpoint arg1, Guid?arg2, Guid?arg3)
        {
            var task = Task.Run(() => { return(new AssociateRouteWithAppResponse()); });

            return(task);
        }