Exemple #1
0
        //Violates L and D
        //Both because we're not using and interface
        public void DoSomethingElseAgain(UpdateUserRecords update)
        {
            update.DoSomeUpdates();
            var emailDependency = new EmailDependency();

            emailDependency.SendMail();
        }
Exemple #2
0
        public void DoSomethingElse()
        {
            //also trapping a dependency here
            //seems to be doing something unrelated to sending emails
            var update = new UpdateUserRecords();

            update.DoSomeUpdates();
        }