Beispiel #1
0
        public void BindForTable_JObject_ReturnsCorrectTable()
        {
            // Arrange
            var attribute = new MobileTableAttribute
            {
                TableName = "TodoItem"
            };
            var configProvider = CreateConfigProvider("Default", new Uri("https://someuri/"));

            // Act
            var tableBuilder = new MobileTableJObjectTableBuilder(configProvider);
            var table        = tableBuilder.Convert(attribute);

            // Assert
            Assert.NotNull(table);
            Assert.Equal("TodoItem", table.TableName);
        }
Beispiel #2
0
        public void BindForTable_JObject_ReturnsCorrectTable()
        {
            // Arrange
            var attribute = new MobileTableAttribute
            {
                TableName = "TodoItem"
            };
            var config = new MobileAppsConfiguration
            {
                MobileAppUri = new Uri("https://someuri/")
            };

            // Act
            var tableBuilder = new MobileTableJObjectTableBuilder(config);
            var table        = tableBuilder.Convert(attribute);

            // Assert
            Assert.NotNull(table);
            Assert.Equal("TodoItem", table.TableName);
        }