Quantcast
Viewing all articles
Browse latest Browse all 764

DataPortal_Create method

I am using the CSLA 3.x framework.

This is my Unit Test method for the DataProtal Create method for one of our business objects.  Should I add anymore to it?

        /// <summary>
        ///A test for DataPortal_Create
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Cit.Library.dll")]
        public void DataPortal_CreateTest()
        {
            Person person = Person.GetPerson(false, 1);

            Cit_Accessor target = new Cit_Accessor();
            object criteria = new Cit_Accessor.Criteria(1, Person);

            target.DataPortal_Create(criteria);

            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }


Viewing all articles
Browse latest Browse all 764

Trending Articles