I am learning Moq, and I would like to mock an interface ISecureAsset that has a property Contexts which returns a list of SecurityContexts. I am testing a method on another class that accesses the Contexts property for authorization.
public interface ISecureAsset {
List<SecurityContext> Contexts { get; set; }
}
How can I do this with Moq? I want to be able to set the values in the Contexts list as well.