public ClassReflector(IStatePropertyReflector statePropertyReflector, IAccessTypeReflector accessTypeReflector) { ArgumentUtility.CheckNotNull("statePropertyReflector", statePropertyReflector); ArgumentUtility.CheckNotNull("accessTypeReflector", accessTypeReflector); _statePropertyReflector = statePropertyReflector; _accessTypeReflector = accessTypeReflector; }
public void SetUp() { _mocks = new MockRepository(); _accessTypeReflectorMock = _mocks.StrictMock <IAccessTypeReflector> (); _classReflectorMock = _mocks.StrictMock <IClassReflector> (); _abstractRoleReflectorMock = _mocks.StrictMock <IAbstractRoleReflector> (); _assemblyReflector = new AssemblyReflector(_accessTypeReflectorMock, _classReflectorMock, _abstractRoleReflectorMock); _cache = new MetadataCache(); }
public AssemblyReflector(IAccessTypeReflector accessTypeReflector, IClassReflector classReflector, IAbstractRoleReflector abstractRoleReflector) { ArgumentUtility.CheckNotNull("accessTypeReflector", accessTypeReflector); ArgumentUtility.CheckNotNull("classReflector", classReflector); ArgumentUtility.CheckNotNull("abstractRoleReflector", abstractRoleReflector); _accessTypeReflector = accessTypeReflector; _classReflector = classReflector; _abstractRoleReflector = abstractRoleReflector; }
public void SetUp() { _mocks = new MockRepository(); _statePropertyReflectorMock = _mocks.StrictMock <IStatePropertyReflector> (); _accessTypeReflectorMock = _mocks.StrictMock <IAccessTypeReflector> (); _classReflector = new ClassReflector(_statePropertyReflectorMock, _accessTypeReflectorMock); _cache = new MetadataCache(); _confidentialityProperty = new StatePropertyInfo(); _confidentialityProperty.ID = Guid.NewGuid().ToString(); _confidentialityProperty.Name = "Confidentiality"; _stateProperty = new StatePropertyInfo(); _stateProperty.ID = Guid.NewGuid().ToString(); _stateProperty.Name = "State"; }