Esempio n. 1
0
        public void DeleteClassRecordByID_Succeed()
        {
            var dbContext    = new SQLConnType(@"localhost\SqlExpress14", "CSG", "sa", "@1Mops4moa");
            var sysUnderTest = new ClassRepo(dbContext);
            var classEnt     = new ClassEntity("50f14850-1161-4b7f-8093-af335090268f");

            sysUnderTest.DeleteByIdAsync(classEnt.Id);

            var result = sysUnderTest.GetAllAsync();

            Assert.True(result.Count > 0);
        }