Esempio n. 1
0
        public void TestFixtureSetUp()
        {
            TestUtil.CleanUpData();

            using(KoalaBlogDbContext dbContext = new KoalaBlogDbContext())
            {
                UserAccountHandler uaHandler = new UserAccountHandler(dbContext);

                testUA1 = new UserAccount();
                testUA1.UserName = "******";
                testUA1.PasswordSalt = "testSalt1";
                testUA1.Password = "******";
                testUA1.Email = "*****@*****.**";
                testUA1.LastLogon = DateTime.Now;
                testUA1.EmailConfirmed = true;
                testUA1.Status = UserAccount.STATUS_ACTIVE;
                uaHandler.Add(testUA1);
                uaHandler.SaveChanges();
            }
        }