public void Commit_DoesNotSaveLogsOnFailedCommit() { try { unitOfWork.Repository <Account>().Insert(new Account()); unitOfWork.Commit(); } catch { } logger.Received().Log(Arg.Any <IEnumerable <DbEntityEntry> >()); logger.DidNotReceive().Save(); }