public async void AddNamespaceSuccessfullyAddsNewNamespaces(string value, bool isSharedNamespace, bool isPrefix)
        {
            // Arrange.
            var namespaces               = ReservedNamespaceServiceTestData.GetTestNamespaces();
            var newNamespace             = new ReservedNamespace(value, isSharedNamespace, isPrefix);
            var reservedNamespaceService = new TestableReservedNamespaceService(reservedNamespaces: namespaces);
            var controller               = new ReservedNamespaceController(reservedNamespaceService);

            // Act & Assert.
            JsonResult result = await controller.AddNamespace(newNamespace);

            dynamic data = result.Data;

            Assert.True(data.success);
        }
        public async void AddNamespaceDoesNotReturnSuccessForInvalidNamespaces()
        {
            // Arrange.
            var namespaces               = ReservedNamespaceServiceTestData.GetTestNamespaces();
            var newNamespace             = namespaces.First();
            var reservedNamespaceService = new TestableReservedNamespaceService(reservedNamespaces: namespaces);
            var controller               = new ReservedNamespaceController(reservedNamespaceService);

            // Act & Assert.
            JsonResult result = await controller.AddNamespace(newNamespace);

            dynamic data = result.Data;

            Assert.False(data.success);
        }