Esempio n. 1
0
        public async Task GraphClientCanAddAppRole()
        {
            // Arrange
            var sut = new GraphClient(_clientOptions);

            // Act
            var response = await sut.AddAppRoleRequest("73b80d45-6fd0-4382-825a-eeb3b6f62e88", "43906d0f-beba-467a-88a9-35bae4951ff1", "18d14569-c3bd-439b-9a66-3a2aee01d14f");

            var content = await response.Content.ReadAsStringAsync();

            var dto = JsonSerializer.Deserialize <AzureAppRoleAssignmentDto>(content);

            // Assert
            Assert.True(response.StatusCode != System.Net.HttpStatusCode.NotFound);
            Assert.True(response.StatusCode != System.Net.HttpStatusCode.BadRequest);
        }