Esempio n. 1
0
        public ReceiveAdapterDALEFTests()
        {
            _sampleData = new SampleData4ReceiveAdapter();

            //Get&Set data context
            var dataContext = DataContextFactory.GetDataContext();

            //Set Data Access Layer
            _receiveAdapterRepository = new ReceiveAdapterRepository(dataContext);
        }
Esempio n. 2
0
        //private ReceiveAdapterBL receiveAdapterBL;
        public ReceiveAdapterBLTests()
        {
            //Set new originalId
            _newItemOriginalId = Guid.NewGuid().ToString();

            //Read registraion key
            _registrationKey = ConfigurationManager.AppSettings["registrationKey"] ?? null;

            //Set bussiness layer (Ninject)
            //var kernel = new StandardKernel(new ReceiveAdapter.Bindings("EF"));
            //receiveAdapterBL = kernel.Get<ReceiveAdapterBL.ReceiveAdapterBL>();

            //Set sample data class
            _sampleData = new SampleData4ReceiveAdapter();
        }