示例#1
0
        public async Task Should_set_description()
        {
            // STEP 1: Update app
            var updateRequest = new UpdateAppDto
            {
                Description = Guid.NewGuid().ToString()
            };

            var app_1 = await _.Apps.PutAppAsync(_.AppName, updateRequest);

            Assert.Equal(updateRequest.Description, app_1.Description);
        }
示例#2
0
        public async Task Should_set_label()
        {
            // STEP 1: Update app
            var updateRequest = new UpdateAppDto
            {
                Label = Guid.NewGuid().ToString()
            };

            var app_1 = await _.Apps.PutAppAsync(_.AppName, updateRequest);

            Assert.Equal(updateRequest.Label, app_1.Label);
        }
示例#3
0
        public async Task Should_manage_app_properties()
        {
            var newLabel       = Guid.NewGuid().ToString();
            var newDescription = Guid.NewGuid().ToString();

            // STEP 1: Update app
            var updateRequest = new UpdateAppDto {
                Label = newLabel, Description = newDescription
            };

            var app_1 = await _.Apps.PutAppAsync(_.AppName, updateRequest);

            Assert.Equal(newLabel, app_1.Label);
            Assert.Equal(newDescription, app_1.Description);
        }
示例#4
0
        public async Task <IActionResult> PutApp(string app, [FromBody] UpdateAppDto request)
        {
            var response = await InvokeCommandAsync(request.ToCommand());

            return(Ok(response));
        }