Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace Backups
- {
- internal class Program
- {
- private static void Main()
- {
- BackupService a = new BackupService(new TestSingleStorageAlgo(), new MockRepo());
- JobObject x = new JobObject("dima");
- a.AddJobObject(x);
- for (int i = 0; i < 500; i++)
- {
- a.MakePoint();
- }
- Console.WriteLine(a.Repository.NumberOfRestorePoints);
- /* Directory.CreateDirectory(
- Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.Parent?.FullName +
- "/Backups/WorkFiles/");
- FileStream fileStream1 = File.Create(
- Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.Parent?.FullName +
- "/Backups/WorkFiles/1.txt");
- fileStream1.Close();
- Directory.CreateDirectory(
- Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.Parent?.FullName +
- "/Backups/BackupWorkFiles/");
- BackupService a = new BackupService(new SplitStoragesAlgo(), new Repository(Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.Parent?.FullName + "/Backups/BackupWorkFiles/"));
- JobObject x = new JobObject(Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.Parent?.FullName + "/Backups/WorkFiles/1.txt");
- a.AddJobObject(x);
- for (int i = 0; i < 500; i++)
- {
- a.MakePoint();
- }
- Console.WriteLine(a.Repository.NumberOfRestorePoints);*/
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement