public void NewElementCell_ShouldCreate()
        {
            var user = new User("User");
            var newElement = new ResourcePool(user, "CMRP")
                .AddElement("Element");

            var newField = newElement.AddField("Field", ElementFieldDataType.String);

            newElement.AddItem("Item").AddCell(newField);
        }
Beispiel #2
0
        public void NewElementCell_ShouldCreate()
        {
            var user       = new User("User", "*****@*****.**");
            var newElement = new ResourcePool(user, "CMRP")
                             .AddElement("Element");

            var newField = newElement.AddField("Field", ElementFieldDataType.String);

            newElement.AddItem("Item").AddCell(newField);
        }
        public void AddField_SortOrder_ShouldCalculate()
        {
            // Arrange
            var user = new User("User");
            var element = new ResourcePool(user, "CMRP")
                 .AddElement("Element");

            // Act
            var secondField = element.AddField("Second field after default Name field", ElementFieldDataType.String);

            // Assert
            Assert.IsTrue(secondField.SortOrder == 2);
        }
Beispiel #4
0
        public void AddField_SortOrder_ShouldCalculate()
        {
            // Arrange
            var user    = new User("User", "*****@*****.**");
            var element = new ResourcePool(user, "CMRP")
                          .AddElement("Element");

            // Act
            var secondField = element.AddField("Second field after default Name field", ElementFieldDataType.String);

            // Assert
            Assert.IsTrue(secondField.SortOrder == 2);
        }
        public void NewUserElementCell_ShouldCreate()
        {
            var newUser = new User("User", "*****@*****.**");

            var newElement = new ResourcePool(newUser, "CMRP")
                             .AddElement("Element");

            var newField = newElement.AddField("Field", ElementFieldDataType.Decimal, false);

            newElement
            .AddItem("Item")
            .AddCell(newField)
            .SetValue(0);
        }
        public void NewUserElementCell_ShouldCreate()
        {
            var newUser = new User("Email");

            var newElement = new ResourcePool(newUser, "CMRP")
                .AddElement("Element");

            var newField = newElement.AddField("Field", ElementFieldDataType.Integer, false);

            newElement
                .AddItem("Item")
                .AddCell(newField)
                .SetValue(0);
        }