Пример #1
0
        public void Add_User_GetBySysId_Success()
        {
            User newUser = new User();

            newUser.ChangeEmail("*****@*****.**");
            string sysID = newUser.getSysId();

            _harness.Add(newUser);
            User blabReturnedFromInMemory = (User)_harness.GetBySysId(sysID);

            Assert.AreEqual(blabReturnedFromInMemory, newUser);
        }
        public void Add_Blab_GetBySysId_Success()
        {
            Blab newBlab = new Blab();

            newBlab.Message = "Hello, this is Chris blabbing for the first time";
            newBlab.UserID  = "*****@*****.**";
            string sysID = newBlab.getSysId();

            _harness.Add(newBlab);
            Blab blabReturnedFromInMemory = (Blab)_harness.GetBySysId(sysID);

            Assert.AreEqual(blabReturnedFromInMemory, newBlab);
        }