Example #1
0
        public CallForSpeechDataBaseTest()
        {
            _tempdatabasefile = CopyDataBase.Run();

            ExecutionFlow.Options = new
                                    ExecutionOptions(true);


            if (_geekLemonContex == null)
            {
                _geekLemonContex =
                    new GeekLemonDBContext(
                        $"Data Source={_tempdatabasefile}");
            }

            if (_mapper == null)
            {
                var mappingConfig = new MapperConfiguration(mc =>
                {
                    mc.AddProfile(new MappingProfile());
                });
                IMapper mapper = mappingConfig.CreateMapper();
                _mapper = mapper;
            }
        }
        public CategoryDataBaseIntegrationTest()
        {
            _tempdatabasefile = CopyDataBase.Run();

            if (_geekLemonContex == null)
            {
                _geekLemonContex =
                    new GeekLemonDBContext(
                        $"Data Source={_tempdatabasefile}");
            }

            if (_mapper == null)
            {
                var mappingConfig = new MapperConfiguration(mc =>
                {
                    mc.AddProfile(new MappingProfile());
                });
                IMapper mapper = mappingConfig.CreateMapper();
                _mapper = mapper;
            }
        }