예제 #1
0
 public void Setup()
 {
     MefBootstrapper.ComposeParts();
     EntityService = MefBootstrapper.Resolve <IEntityService>();
     EntityDao     = MefBootstrapper.Resolve <IEntityDao>();
     Workspace     = PrepareWorkspace("sd1.txt");
 }
예제 #2
0
 public void Setup()
 {
     MefBootstrapper.ComposeParts();
     AccountService = MefBootstrapper.Resolve <IAccountService>();
     CacheService   = MefBootstrapper.Resolve <ICacheService>();
     AccountDao     = MefBootstrapper.Resolve <IAccountDao>();
     Workspace      = PrepareWorkspace("sd1.txt");
 }
예제 #3
0
        public void Setup()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
            LocalSettings.CurrencyFormat        = "#,#0.00";

            var dataFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\tests";

            if (!Directory.Exists(dataFolder))
            {
                Directory.CreateDirectory(dataFolder);
            }
            var filePath = string.Format("{0}\\{1}", dataFolder, "1.txt");

            if (File.Exists(filePath))
            {
                File.Delete(filePath);
            }
            WorkspaceFactory.UpdateConnection(filePath);

            Ticket = PrepareTestTicket();

            MefBootstrapper.ComposeParts();
            PrinterService = MefBootstrapper.Resolve <IPrinterService>();
        }
예제 #4
0
 public void Setup()
 {
     ExpressionService = MefBootstrapper.Resolve <IExpressionService>();
 }