Exemple #1
0
        public void Z_RemoveCompanyTest()
        {
            CompanyService.RemoveCompany(Company);
            var removedCompany = CompanyService.GetCompanyFromId(Company.Id);

            Assert.AreEqual(removedCompany.Id, -1);
        }
Exemple #2
0
        public void Y_TestAddedCompany()
        {
            var addedCompany = CompanyService.GetCompanyFromId(Company.Id);

            Assert.AreEqual(addedCompany.Name, Company.Name);
        }
Exemple #3
0
        //[TestCase(1, "Skinix")]
        //[TestCase(2, "Demizz")]
        //[TestCase(3, "Snaptags")]
        //[TestCase(4, "Yodo")]
        public void GetCompanyFromIdTest(int id, string result)
        {
            var company = CompanyService.GetCompanyFromId(id);

            Assert.AreEqual(company.Name, result);
        }