Beispiel #1
0
        public void CompanyDel_Successful()
        {
            const int companyId = 2;

            // 1. Pre-checks
            int count = StaticData.Companies.Count();

            // 2. Perform the insert
            var result = controller.CompanyDel(companyId);

            IsPartial(result);

            // 3. Ensure changes are done
            Assert.AreEqual(StaticData.Companies.Count(), count - 1, Messages.Settings.CountShouldBeOneLess);
        }