¡@

Home 

c# Programming Glossary: iauditable

Need help to understand Moq better

http://stackoverflow.com/questions/1073846/need-help-to-understand-moq-better

setting up the mock public static void SetAuditProperties IAuditable auditable auditable.ModifiedBy Thread.CurrentPrincipal.Identity.Name.. case the code is setting the ModifiedBy property of the IAuditable instance while it's getting the Name property of the current.. Mock IPrincipal mockPrincipal new Mock IPrincipal Mock IAuditable mockAuditable new Mock IAuditable mockPrincipal.SetupGet p p.Identity.Name..

Unit testing and checking private variable value

http://stackoverflow.com/questions/1093020/unit-testing-and-checking-private-variable-value

OnSave object entity object id var auditable entity as IAuditable if auditable null insertItems.Add entity return false I want.. case the first question that comes to mind is Why are the IAuditable objects added to the internal list or put differently What is.. questions that's what you need to test. If you add the IAuditable objects to your internal list because you later want to write..

Navigation Property without Declaring Foreign Key

http://stackoverflow.com/questions/5691780/navigation-property-without-declaring-foreign-key

declare it as such using an attribute public class User IAuditable other code public virtual User Creator get set public virtual..

Binding property to control in Winforms

http://stackoverflow.com/questions/5883282/binding-property-to-control-in-winforms

Overriding SaveChanges and setting ModifiedDate, but how do I set ModifiedBy?

http://stackoverflow.com/questions/7641552/overriding-savechanges-and-setting-modifieddate-but-how-do-i-set-modifiedby

all changes made to any entity objects that implement my IAuditable interface. I have a static DateProvider class and method GetCurrentDate.. int SaveChanges var changeSet ChangeTracker.Entries IAuditable if changeSet null foreach var entry in changeSet.Where c c.State.. int SaveChanges var changeSet ChangeTracker.Entries IAuditable if changeSet null foreach var entry in changeSet.Where c c.State..