示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void before()
        public virtual void Before()
        {
            _master         = mock(typeof(Master));
            _masterDelegate = new DelegateInvocationHandler <Master>(typeof(Master));
            _fs             = FileSystemRule.get();
            _fac            = new HaIdGeneratorFactory(_masterDelegate, NullLogProvider.Instance, mock(typeof(RequestContextFactory)), _fs, new CommunityIdTypeConfigurationProvider());
        }
示例#2
0
 internal HaIdGenerator(HaIdGeneratorFactory outerInstance, IdGenerator initialDelegate, File fileName, int grabSize, IdType idType, IdGeneratorState initialState, long maxId)
 {
     this._outerInstance = outerInstance;
     Delegate            = initialDelegate;
     this.FileName       = fileName;
     this.GrabSize       = grabSize;
     this.IdType         = idType;
     this.State          = initialState;
     this.MaxId          = maxId;
     outerInstance.log.Debug("Instantiated HaIdGenerator for " + initialDelegate + " " + idType + ", " + initialState);
 }