예제 #1
0
        public async Task UpdateApps()
        {
            // Arrange

            // Act
            var result = await sut.UpdateApp(
                1,
                new AppRequest()
            {
                License     = license,
                RequestorId = 1,
                Paginator   = new Paginator(),
                Name        = "Test App 1... UPDATED!",
                DevUrl      = "https://localhost:4200",
                LiveUrl     = "https://testapp.com"
            }
                );

            var name = result.App.Name;
            var apps = context.Apps.ToList();

            // Assert
            Assert.That(result.Success, Is.True);
            Assert.That(result.Message, Is.EqualTo("App Updated"));
            Assert.That(name, Is.EqualTo("Test App 1... UPDATED!"));
        }