public void SaveCompany_CompanyDoesExists_Updated() { var company = new Company () { Key = 1 }; m_target.SaveCompany (company); Assert.AreEqual(4, m_target.CountAllCompanies()); Assert.AreEqual (1, m_target.GetCompanyByKey (company.Key).Key); }
public void SaveCompany_CompanyDoesNotExists_Created() { var company = new Company () { Key = 5 }; m_target.SaveCompany (company); Assert.AreEqual(5, m_target.CountAllCompanies()); Assert.AreEqual (5, m_target.GetCompanyByKey (company.Key).Key); }