Esempio n. 1
0
        public void testConnectionEntity()
        {
            //arrange
            var workUnit = new WorkUnit(new DomainContext());
            var profile  = workUnit.ProfileRepository.GetEntityByID(1);

            var connProf = workUnit.ProfileRepository.GetEntityByID(1);

            profile.Connections.Add(connProf);
            workUnit.saveChanges();
            //assert
            Assert.AreNotEqual(profile.Connections.Count(), 0);
        }