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);
        }
示例#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 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);
        }