示例#1
0
        public void UpdateProjectNumbers_Model_Land_Empty()
        {
            // Arrange
            var property        = new Dal.Entities.Views.Property();
            var projectProperty = new Dal.Entities.Models.ProjectProperty(property);

            // Act
            var result = projectProperty.UpdateProjectNumbers("3");

            // Assert
            result.ProjectNumbers.Should().Be("[\"3\"]");
        }
示例#2
0
        public void UpdateProjectNumbers_Model_AddLand()
        {
            // Arrange
            var property = new Dal.Entities.Views.Property
            {
                ProjectNumbers = "[\"1\",\"2\",\"3\",\"4\"]"
            };
            var projectProperty = new Dal.Entities.Models.ProjectProperty(property);

            // Act
            var result = projectProperty.UpdateProjectNumbers("5");

            // Assert
            result.ProjectNumbers.Should().Be("[\"1\",\"2\",\"3\",\"4\",\"5\"]");
        }