コード例 #1
0
        public void CreateCompanyTest()
        {
            Company temp = NewCompany();

            HelpdeskService.CreateCompany(temp);

            Trace.WriteLine(temp.CompanyId);

            Assert.IsTrue(SelectCompanyById(temp.CompanyId) != null, "The internal selection query used to verify this test failed to return the a row.");
            Assert.IsTrue(temp.CompanyId > 0, "The returned Id from the CreateQueue test did not return a value greater than 0.");
        }
コード例 #2
0
 /// <summary>
 /// Helper method to insert values into the database.  If successful, it will set the appropriate row id.
 /// </summary>
 /// <param name="Category"></param>
 private void InsertCompanyIntoDatabase(Company company)
 {
     HelpdeskService.CreateCompany(company);
 }