Exemplo n.º 1
0
 public void Setup()
 {
     MefBootstrapper.ComposeParts();
     EntityService = MefBootstrapper.Resolve <IEntityService>();
     EntityDao     = MefBootstrapper.Resolve <IEntityDao>();
     Workspace     = PrepareWorkspace("sd1.txt");
 }
 public void Setup()
 {
     MefBootstrapper.ComposeParts();
     AccountService = MefBootstrapper.Resolve <IAccountService>();
     CacheService   = MefBootstrapper.Resolve <ICacheService>();
     AccountDao     = MefBootstrapper.Resolve <IAccountDao>();
     Workspace      = PrepareWorkspace("sd1.txt");
 }
        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>();
        }
 public void Setup()
 {
     ExpressionService = MefBootstrapper.Resolve <IExpressionService>();
 }