public void Handle(RenameUserEvent evt)
        {
            TestCFContext db     = new TestCFContext();
            var           entity = db.Set <TestUser>().Find(evt.UserID);

            entity.UserName = evt.UserName;
            db.SaveChanges();
        }
        public void Handle(EmailUserEvent evt)
        {
            TestCFContext db     = new TestCFContext();
            var           entity = db.Set <TestUser>().Find(evt.UserID);

            entity.Email = evt.Email;
            db.SaveChanges();
        }
        public void Handle(CreateUserEvent evt)
        {
            TestCFContext db     = new TestCFContext();
            var           entity = new TestUser
            {
                Email    = evt.Email,
                UserName = evt.UserName,
            };

            db.Entry(entity);
            db.Set <TestUser>().Add(entity);
            db.SaveChanges();
        }