Example #1
0
 // Use this for initialization
 void Start()
 {
     startUp = GameObject.Find("GlobalScripts").GetComponent<StartUp>();
     this.gameObject.renderer.material.color = new Color(0F, 1F, 0.2F, 1F);
     timerStyle.fontSize = 22;
     timerStyle.normal.textColor = Color.white;
 }
Example #2
0
 static bool Run(Player human, Player computer, StartUp startUp)
 {
     bool result = false;
     do
     {
         ConsoleKey key = Console.ReadKey(true).Key;
         if (key == ConsoleKey.Enter)
         {
             Array.Clear(human.PlayerMoves, 0, human.PlayerMoves.Length);
             Array.Resize<int>(ref human.PlayerMoves, 0);
             Array.Clear(computer.PlayerMoves, 0, computer.PlayerMoves.Length);
             Array.Resize<int>(ref computer.PlayerMoves, 0);
             Console.Clear();
             result = true;
         }   //  end of if
         else if (key == ConsoleKey.F1)
         {
             result = false;
             break;
         }   // end of else if
         else if (key == ConsoleKey.Escape)
             Environment.Exit(2);    //  stänger programmet
         //else
         //    result = false;
     } while (!result);
     return result;
 }
Example #3
0
        public static void SetInitializer()
        {
            //try
            //{
                var startup = new StartUp();

                if (startup.GetValoresHardkey())
                {
                    if (startup.GetVariablesConexion(true, modDeclares.keyMode.keyRegistry))
                    {
                        if (startup.AbrirConexion(modDeclares.cnnDefault))
                        {
                            modFechas.InitDateVars();
                            modNumeros.InitSepDecimal();
                            modDeclares.shamanConfig = new conConfiguracion();
                            modDeclares.shamanConfig.UpConfig();
                            bool cambiar = false;
                            modDeclares.shamanSession = new conUsuarios();
                            modDeclares.shamanSession.Autenticar("JAVIER", "jj4842908", ref cambiar);
                        }
                    }
                } 
            //}
            //catch (Exception ex)
            //{
            //    LogShaman sarasa = new LogShaman();
            //    sarasa.SetLog(ex.ToString());
            //}
         
        }
Example #4
0
 // end of constructor
 // methods
 static bool PlayTheGame()
 {
     StartUp startUp = new StartUp();
     do
     {
         game = new Game(startUp.BoardSize, startUp.Human, startUp.Computer, startUp.AIAuthor);
     } while (Run(startUp.Human, startUp.Computer, startUp));
     return false;
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     fire = 0;
     startUp = GameObject.Find("GlobalScripts").GetComponent<StartUp>();
     swap = startUp.rand.Next(1, 4);
     position1 = finish.transform.position;
     position2 = fakeFinish1.transform.position;
     position3 = fakeFinish2.transform.position;
 }
Example #6
0
 // Use this for initialization
 void Start()
 {
     checkpoints = GameObject.FindGameObjectsWithTag("Checkpoint");
     startUp = GameObject.Find("GlobalScripts").GetComponent<StartUp>();
     finish = GameObject.Find("CheckpointFinish").GetComponent<Finish>();
     this.gameObject.collider.material.bounceCombine = PhysicMaterialCombine.Multiply;
     //this.gameObject.collider.material.bounciness = 1F;
     powerLine = PowerLine.GetComponent<LineRenderer>();
     powerLine.SetWidth(0.5f,0.5f);
     powerLine.SetVertexCount(2);
     powerLine.SetColors(new Color(1F, 0F, 0F, 1F), new Color(1F, 0F, 0F, 1F));
     aimLine = AimLine.GetComponent<LineRenderer>();
     aimLine.SetWidth(0.05f,0.05f);
     aimLine.SetVertexCount(2);
     aimLine.SetColors(new Color(0.8F, 0.8F, 0.8F, 0.8F), new Color(0.8F, 0.8F, 0.8F, 0.8F));
 }
Example #7
0
        public static void start()
        {
            //every new delegate must register at least one method for initiation
            StartUp su = new StartUp(method1);
            //to register more methods to the delegate
            su += method2;		//notice you don't add ()
            su += method3;
            //...

            //fire the delegate like this, will call all the registered methods
            su();

            Console.WriteLine();

            //unregister a method from delegate
            su -= method3;
            su -= method1;
            su();
        }
Example #8
0
 public void TearDown()
 {
     StartUp.Finish();
 }
Example #9
0
        private void ExecuteCustom(DataRow dr)
        {
            switch (dr["CustomClass"].ToString())
            {
            //case "sChonNgayHethong":
            //    sChonNgayHethong f2 = new sChonNgayHethong();
            //    f2.MdiParent = this;
            //    f2.Show();
            //    break;
            //case "fNhapChisocongter" :
            //    fNhapChisocongter f = new fNhapChisocongter();
            //    f.MdiParent = this;
            //    f.Show();
            //    break ;
            //case "fPhieuGiaohang":
            //    fPhieuGiaohang f1 = new fPhieuGiaohang();
            //    f1.MdiParent = this;
            //    f1.Show();
            //    break;
            //case "fCRManage":
            //    fCRManage fcr = new fCRManage();
            //    fcr.MdiParent = this;
            //    fcr.Show();
            //    break;
            //case "fCRQuestion":
            //    fCRQuestion fcr1 = new fCRQuestion();
            //    fcr1.MdiParent = this;
            //    fcr1.Show();
            //    break;
            //case "fImExcel":
            //    CusNissan.fImExcel fIe = new CusNissan.fImExcel();
            //    fIe.MdiParent = this;
            //    fIe.Show();
            //    break;
            case "StartUp":
                StartUp fstartup = new StartUp();
                fstartup.MdiParent = this;
                fstartup.Show();
                break;

            case "fTaskList":
                fTaskList fStart = new fTaskList();
                fStart.MdiParent = this;
                fStart.Show();
                break;

            case "TMBCTC":
                TMBCTCFilter fTMBCTC = new TMBCTCFilter();
                fTMBCTC.MdiParent = this;
                fTMBCTC.Show();
                break;

            case "BangkeBanra":
                ExportVatFilter fExportVatFilter = new ExportVatFilter();
                fExportVatFilter.MdiParent = this;
                fExportVatFilter.Show();
                break;

            case "fDoiGia":
                fDoiGia fdoigia = new fDoiGia();
                fdoigia.MdiParent = this;
                fdoigia.Show();
                break;

            case "fImExcelto32":
                fImExcelto32 fImexcelto32 = new fImExcelto32();
                fImexcelto32.MdiParent = this;
                fImexcelto32.Show();
                break;

            case "fImExcelGTCC":
                fImExcelGTCC fImExcelGTCC = new fImExcelGTCC();
                fImExcelGTCC.MdiParent = this;
                fImExcelGTCC.Show();
                break;

            case "fCopyPackage":
                fCopyPackage fcopyPackage;    // =new fCopyPackage();
                fcopyPackage = new fCopyPackage();
                fcopyPackage.ShowDialog();
                break;

            case "fTaoPTT":
                fTaoPTT f_TaoPTT;    //= new fTaoPTT();
                f_TaoPTT = new fTaoPTT();
                f_TaoPTT.ShowDialog();
                break;

            case "fPQchucnang":
                fPQchucnang f_PQchucnang = new fPQchucnang();
                f_PQchucnang.MdiParent = this;
                f_PQchucnang.Show();
                break;

            case "fCoKHSX":
                fCoKHSX f_CoKHSX = new fCoKHSX();
                f_CoKHSX.MdiParent = this;
                f_CoKHSX.Show();
                break;

            case "CoPhanBoCtrinh":
                CoPhanBoCtrinh fCoPhanBoCtrinh = new CoPhanBoCtrinh();
                fCoPhanBoCtrinh.MdiParent = this;
                fCoPhanBoCtrinh.Show();
                break;

            case "fImExcelHongDongNaiOut":
                CusAccounting.fImExcelHongDongNaiOut fImExcelHongDongNaiOut = new CusAccounting.fImExcelHongDongNaiOut();
                fImExcelHongDongNaiOut.MdiParent = this;
                fImExcelHongDongNaiOut.Show();
                break;

            case "fImExcelHongDongNaiIn":
                CusAccounting.fImExcelHongDongNaiIn fImExcelHongDongNaiIn = new CusAccounting.fImExcelHongDongNaiIn();
                fImExcelHongDongNaiIn.MdiParent = this;
                fImExcelHongDongNaiIn.Show();
                break;

            case "fPOS":
                fPOS f_fPOS = new fPOS();
                f_fPOS.MdiParent = this;
                f_fPOS.Show();
                break;

            case "fPOSKM":
                fPOSKM f_fPOSKM = new fPOSKM();
                f_fPOSKM.MdiParent = this;
                f_fPOSKM.Show();
                break;

            case "fMon4Area":
                fMon4Area f_Mon4Area = new fMon4Area();
                f_Mon4Area.MdiParent = this;
                f_Mon4Area.Show();
                break;

            case "iMaintain":
                Maintain();
                break;

            case "fBanhang":
                fBanhang fbanhang = new fBanhang();
                fbanhang.MdiParent = this;
                fbanhang.Show();
                break;

            case "fCatSolieu":
                fCatSolieu fcatSolieu = new fCatSolieu();
                fcatSolieu.MdiParent = this;
                fcatSolieu.Show();
                break;

            case "fKHManage":
                fKHManage fKHmanage = new fKHManage();
                fKHmanage.MdiParent = this;
                fKHmanage.Show();
                break;
            }
        }
Example #10
0
 /// <summary>
 ///加载必要服务
 /// </summary>
 private static void Load()
 {
     StartUp.Run();
 }
Example #11
0
        static void Main(string[] args)
        {
            var start = new StartUp();

            start.Run();
        }
        /// <summary>
        /// 加载此服务
        /// </summary>
        /// <param name="services"></param>
        public static IServiceCollection AddMemoryCache(this IServiceCollection services)
        {
            StartUp.Run();

            return(services);
        }
Example #13
0
        public static unsafe void Main()
        {
            try
            {
                ManagedMemoy.InitializeGCMemory();
                StartUp.InitializeAssembly();
                KMath.Init();
                //Mosa.Runtime.StartUp.InitializeRuntimeMetadata();

                BootInfo.SetupStage1();

                Memory.InitialKernelProtect();

                ApiContext.Current = new ApiHost();
                Assert.Setup(AssertError);

                // Setup some pseudo devices
                DeviceManager.InitStage1();

                //Setup Output and Debug devices
                DeviceManager.InitStage2();

                // Write first output
                KernelMessage.WriteLine("<KERNEL:CONSOLE:BEGIN>");
                PerformanceCounter.Setup(BootInfo.Header->KernelBootStartCycles);
                KernelMessage.WriteLine("Starting Abanu Kernel...");

                KernelMessage.WriteLine("KConfig.UseKernelMemoryProtection: {0}", KConfig.UseKernelMemoryProtection);
                KernelMessage.WriteLine("KConfig.UsePAE: {0}", KConfig.UsePAE);
                KernelMessage.WriteLine("Apply PageTableType: {0}", (uint)BootInfo.Header->PageTableType);
                KernelMessage.WriteLine("GCInitialMemory: {0:X8}-{1:X8}", Address.GCInitialMemory, Address.GCInitialMemory + Address.GCInitialMemorySize - 1);

                Ulongtest1();
                Ulongtest2();
                InlineTest();

                // Detect environment (Memory Maps, Video Mode, etc.)
                BootInfo.SetupStage2();

                KernelMemoryMapManager.Setup();
                //KernelMemoryMapManager.Allocate(0x1000 * 1000, BootInfoMemoryType.PageDirectory);

                // Read own ELF-Headers and Sections
                KernelElf.Setup();

                // Initialize the embedded code (actually only a little proof of concept code)
                NativeCalls.Setup();

                //InitialKernelProtect();

                PhysicalPageManager.Setup();

                KernelMessage.WriteLine("Phys free: {0}", PhysicalPageManager.FreePages);
                PhysicalPageManager.AllocatePages(10);
                KernelMessage.WriteLine("Phys free: {0}", PhysicalPageManager.FreePages);
                VirtualPageManager.Setup();

                Memory.Setup();

                // Now Memory Sub System is working. At this point it's valid
                // to allocate memory dynamically

                DeviceManager.InitFrameBuffer();

                // Setup Programmable Interrupt Table
                PIC.Setup();

                // Setup Interrupt Descriptor Table
                // Important Note: IDT depends on GDT. Never setup IDT before GDT.
                IDTManager.Setup();

                InitializeUserMode();
                SysCallManager.Setup();

                KernelMessage.WriteLine("Initialize Runtime Metadata");
                StartUp.InitializeRuntimeMetadata();

                KernelMessage.WriteLine("Performing some Non-Thread Tests");
                Tests();
            }
            catch (Exception ex)
            {
                Panic.Error(ex.Message);
            }

            if (KConfig.SingleThread)
            {
                StartupStage2();
            }
            else
            {
                ProcessManager.Setup(StartupStage2);
            }
        }
Example #14
0
 public void Start(StartUp inputParams)
 {
     StartByDuration(inputParams, new UpdateDuration(), 0);
 }
Example #15
0
        public void TestInitialize()
        {
            this.kernel = StartUp.Initialize();

            this.MarcoService = kernel.Get <IMarcoService>();
        }
Example #16
0
 public void ajouterStartup(StartUp startup)
 {
     startuprepository.Create(startup);
 }
Example #17
0
 protected void Application_Start()
 {
     StartUp.Application_Start();
 }
Example #18
0
        public void ConfigureAuth(IAppBuilder app)
        {
            var startUp = new StartUp();

            startUp.ConfigureAuth(app);
        }
Example #19
0
 // Use this for initialization
 void Start()
 {
     component = GameManager.GetComponent <StartUp>();
 }
        public void TestInitialize()
        {
            var kernel = StartUp.Initialize();

            this.VarillaRepository = kernel.Get <IVarillaRepository>();
        }
        public void EavenElementsArraysAreSymmetric()
        {
            int[] array = { 1, 2, 2, 1 };

            Assert.IsTrue(StartUp.CheckForSymmetryIntArray(array));
        }
Example #22
0
 public abstract bool StartByDuration(StartUp start, UpdateDuration duration, int counter);
        public void EavenElementsArraysAreNotSymmetric()
        {
            int[] array = { 1, 2, 4, 5 };

            Assert.IsFalse(StartUp.CheckForSymmetryIntArray(array));
        }
Example #24
0
 protected override void RegisterDependencies()
 {
     StartUp.RegisterComponents(ServiceCollection, CreateTestConfiguration());
 }
Example #25
0
 /// <summary>
 /// Catches the start up activity.
 /// </summary>
 /// <param name="su">The su.</param>
 public void CatchStartUpActivity(StartUp su)
 {
     su.Catched = true;
     su.StateString = judge.CurState.ToString();
 }
Example #26
0
 public TcpServer(StartUp startUp)
 {
     this.startUp = startUp;
 }
 public void Dispose()
 {
     StartUp.Dispose();
 }
 public UpdateUserRefreshTokenCommandHandlerTests(ITestOutputHelper output)
 {
     _startUp = new StartUp();
     _output  = output;
 }
 static void Main(string[] args)
 {
     StartUp.RunApplication();
 }
 /// <summary>
 /// 加载Consul服务
 /// </summary>
 /// <param name="services"></param>
 /// <param name="configuration">Consul 配置</param>
 /// <returns></returns>
 public static IServiceCollection AddConsul(this IServiceCollection services,
                                            IConfiguration configuration)
 {
     StartUp.Run();
     return(services.AddConsul(() => configuration.GetSection(nameof(ConsulConfig)).Get <ConsulConfig>()));
 }
Example #31
0
        public static void RegisterToWindowsService(string serviceName, string displaName, string description, string[] args, StartUp startUp = StartUp.Auto)
        {
            if (!IsAdministrator)
            {
                RunAsAdmin(ExecutableFilePath, args);
                return;
            }

            var startupText = startUp switch
            {
                StartUp.Auto => "auto",
                StartUp.Demand => "demand",
                StartUp.Disabled => "disabled",
                _ => throw new Exception()
            };

            var binPath = new[] { $"\"{ExecutableFilePath}\"", "--service", "true" }.Concat(args.Where(arg => arg != "install"));

            Run("sc", "create",
                serviceName,
                "binpath=", string.Join(" ", binPath),
                "start=", startupText,
                "displayname=", displaName
                );

            Run("sc", "description", serviceName, description);
        }
Example #32
0
        public override void UpdateIsParting()
        {
            //TazehaContext Context = new TazehaContext();
            StartUp inputparams = new StartUp();

            EventsLog.GeneralLogs.WriteLogInDB("Start Updater is parting localy", TypeOfLog.Start);
            #region ForFirst
            List <UpdateDuration> periods = new List <UpdateDuration>();
            if (DurationDic.Count == 0)
            {
                periods = Context.UpdateDurations.FromHttpCache <UpdateDuration>().Where(x => x.IsParting.HasValue && x.IsParting.Value == true && x.IsLocalyUpdate.HasValue && x.IsLocalyUpdate == true).ToList();
                foreach (var period in periods)
                {
                    //period.FeedsCount = entiti.Feeds.Where(x => x.Id.Value == period.Id).Count();
                    DurationDic.Add(period, 0);
                }
            }
            else
            {
                periods = DurationDic.Select(x => x.Key).ToList();
            }

            #endregion
            int durationCounter = 0;
            foreach (var duration in periods)
            {
                if (StopUpdater)
                {
                    return;
                }
                inputparams.StartUpConfig = duration.Code;
                var      FeedsCount = Context.Feeds.Where <Feed>(x => x.UpdateDurationId.Value == duration.Id && ((int)x.Deleted < 1 || (int)x.Deleted > 10)).Count(); //&& (x.Site.IsBlog == inputparams.IsBlog || inputparams.IsBlog == 2) &&
                TimeSpan delaytime  = TimeSpan.Parse(duration.DelayTime);
                var      Partnumber = delaytime.Hours * 60 / Config.GetTimeInterval();                                                                                 //20 min intervall
                var      TopCount   = FeedsCount / Partnumber != 0 ? FeedsCount / Partnumber : FeedsCount % Partnumber;
                if (TopCount == 0)
                {
                    continue;
                }
                inputparams.TopCount = TopCount;

                #region get Last Index
                if (DurationDic[duration] == 0)
                {
                    int LastUpdateIndex = 0;
                    var lastupdateindex = Context.ProjectSetups.SingleOrDefault(x => x.Title == "LastUpdat:" + inputparams.StartUpConfig.Trim());
                    if (lastupdateindex != null)
                    {
                        LastUpdateIndex = int.Parse(lastupdateindex.Value);
                    }
                    DurationDic[duration] = LastUpdateIndex;
                }
                #endregion
                inputparams.StartIndex = DurationDic[duration];

                StartByDuration(inputparams, duration, durationCounter);

                #region save last state
                Context = new TazehaContext();
                var projStup = Context.ProjectSetups.SingleOrDefault(x => x.Title == "LastUpdat:" + inputparams.StartUpConfig);
                if (DurationDic[duration] + 1 >= FeedsCount)
                {
                    projStup.Value = "0";
                    Context.SaveChanges();
                    DurationDic[duration] = 0;
                }
                else
                {
                    DurationDic[duration] = DurationDic[duration] + TopCount;
                    projStup       = Context.ProjectSetups.SingleOrDefault(x => x.Title == "LastUpdat:" + inputparams.StartUpConfig);
                    projStup.Value = (DurationDic[duration]).ToString();
                    Context.SaveChanges();
                }
                #endregion
            }
            EventsLog.GeneralLogs.WriteLogInDB("End UpdateIsParting", TypeOfLog.End, typeof(UpdaterClassic));
        }
Example #33
0
        public static QuerySpec Parse(TableSpec tabSpec, HttpRequest Request)
        {
            if (_log == null)
            {
                _log = StartUp.GetLogger <RequestHandler>();
            }

            var spec = new QuerySpec();

            if (Request.Query["$format"].Count == 1 && Request.Query["$format"].ToString().ToLower() != "json")
            {
                if (_log != null)
                {
                    _log.ErrorFormat("Unsupported {parameter} {value} provided to {type} Uri parser", "$format", Request.Query["$format"], "OData");
                }
                throw new ArgumentException("Parameter $format is not supported.");
            }
            foreach (var p in Request.Query.Keys)
            {
                if (p.StartsWith("$") &&
                    !(p == "$select" || p == "$orderby" || p == "$format" ||
                      p == "$apply" || p == "$systemat" ||
                      p == "$top" || p == "$skip" ||
                      p == "$filter" || p == "$search"))
                {
                    if (_log != null)
                    {
                        _log.ErrorFormat("Unsupported {parameter} {value} provided to {type} Uri parser", p, Request.Query[p], "OData");
                    }
                    throw new ArgumentException("Parameter " + p + " is not supported.");
                }
            }
            spec.count = Request.Path.Value.EndsWith("/$count");
            if (Request.Query.ContainsKey("$skip"))
            {
                spec.skip = Convert.ToInt32(Request.Query["$skip"]);
            }
            if (Request.Query.ContainsKey("$top"))
            {
                spec.top = Convert.ToInt32(Request.Query["$top"]);
            }
            spec.select  = Request.Query["$select"];
            spec.keyword = Request.Query["$search"];
            ParseSearch(Request.Query["$filter"], spec, tabSpec);
            ParseGroupBy(Request.Query["$apply"], spec, tabSpec);
            ParseOrderBy(tabSpec, Request.Query["$orderby"], spec);
            if (Request.Query.ContainsKey("$systemat"))
            {
                spec.systemTimeAsOf = Request.Query["$systemat"];
                DateTime asof;
                if (!DateTime.TryParse(spec.systemTimeAsOf, out asof))
                {
                    if (_log != null)
                    {
                        _log.ErrorFormat("Indalid date {value} provided as {parameter} in {type} Uri parser", spec.systemTimeAsOf, "$systemat", "OData");
                    }
                    throw new ArgumentException(spec.systemTimeAsOf + " is not valid date.");
                }
            }

            tabSpec.Validate(spec);
            return(spec);
        }
Example #34
0
 public void SetupTests()
 {
     StartUp.Start();
 }
Example #35
0
 public override bool StartByDuration(StartUp start, UpdateDuration duration, int counter)
 {
     throw new NotImplementedException();
 }
Example #36
0
    public void ExportGamesByGenresZeroTest()
    {
        var context = serviceProvider.GetService <MusicHubDbContext>();

        SeedDatabase(context);

        var actual = StartUp.ExportSongsAboveDuration(context, 180).Trim();

        var expected = @"-Song #1
---SongName: Away
---Writer: Norina Renihan
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:05:35
-Song #2
---SongName: Bentasil
---Writer: Mik Jonathan
---Performer: Zabrina Amor
---AlbumProducer: Dobromir Slavchev
---Duration: 00:04:03
-Song #3
---SongName: Cough Relief
---Writer: Jessie Townby
---Performer: Peter Bree
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:10:34
-Song #4
---SongName: Cry Me A River
---Writer: Kara-lynn Sharpous
---Performer: Georgia Winchurch
---AlbumProducer: Evtim Miloshev
---Duration: 00:04:20
-Song #5
---SongName: Don't call me up
---Writer: Jessie Townby
---Performer: Georgia Winchurch
---AlbumProducer: Dobromir Slavchev
---Duration: 00:05:20
-Song #6
---SongName: Hydralazine Hydroch
---Writer: Sibelle Hanton
---Performer: Gennifer Lopez
---AlbumProducer: F.O.
---Duration: 00:09:54
-Song #7
---SongName: In the start
---Writer: Rosalyn Humphris
---Performer: Alidia Horsewood
---AlbumProducer: Rolph Nibley
---Duration: 00:03:15
-Song #8
---SongName: It is my life
---Writer: Stanford Daykin
---Performer: Alidia Horsewood
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:06:11
-Song #9
---SongName: La Vaquita
---Writer: Maitilde Sangar
---Performer: Zabrina Amor
---AlbumProducer: Georgi Milkov
---Duration: 00:08:32
-Song #10
---SongName: Levothyroxine Sodium
---Writer: Carol Mitchell
---Performer: Gennifer Lopez
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:10:41
-Song #11
---SongName: Lose Yourself
---Writer: Chelsy Pennyman
---Performer: Alidia Horsewood
---AlbumProducer: Dobromir Slavchev
---Duration: 00:03:30
-Song #12
---SongName: Medique Diphen
---Writer: Rosalyn Humphris
---Performer: Gennifer Lopez
---AlbumProducer: F.O.
---Duration: 00:09:31
-Song #13
---SongName: Morning After
---Writer: Linnie Petrolli
---Performer: 
---AlbumProducer: Jana Karaivanova
---Duration: 00:04:23
-Song #14
---SongName: Numb
---Writer: Kara-lynn Sharpous
---Performer: Alidia Horsewood
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:04:11
-Song #15
---SongName: Quinapril
---Writer: Linnie Petrolli
---Performer: Gilligan Caney
---AlbumProducer: Georgi Milkov
---Duration: 00:10:31
-Song #16
---SongName: Ride it
---Writer: Lusa Steers
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:04:35
-Song #17
---SongName: River
---Writer: Quillan Grover
---Performer: Alidia Horsewood
---AlbumProducer: Georgi Milkov
---Duration: 00:03:10
-Song #18
---SongName: rx act pain relief
---Writer: Chelsy Pennyman
---Performer: Tine Althorp
---AlbumProducer: Dobromir Slavchev
---Duration: 00:03:39
-Song #19
---SongName: Say It Right
---Writer: Petko Matisse
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:04:35
-Song #20
---SongName: Tiempo
---Writer: Norina Renihan
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:05:35
-Song #21
---SongName: Wait For A Minute
---Writer: Verine Eschalotte
---Performer: Dasi Pirrey
---AlbumProducer: Evtim Miloshev
---Duration: 00:04:20
-Song #22
---SongName: What Goes Around
---Writer: Maitilde Sangar
---Performer: Peter Bree
---AlbumProducer: Georgi Milkov
---Duration: 00:03:23
-Song #23
---SongName: Wide Awake
---Writer: Marlee Olivet
---Performer: Alidia Horsewood
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:04:11".Trim();

        Assert.That(actual, Is.EqualTo(expected).NoClip,
                    $"{nameof(StartUp.ExportSongsAboveDuration)} output is incorrect!");
    }
Example #37
0
 private static void Main(string[] args)
 {
     StartUp.Start();
 }
Example #38
0
    public void ExportGamesByGenresZeroTest()
    {
        var context = serviceProvider.GetService <MusicHubDbContext>();

        SeedDatabase(context);

        var actual = StartUp.ExportSongsAboveDuration(context, 260).Trim();

        var expected = @"-Song #1
---SongName: Away
---Writer: Norina Renihan
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:05:35
-Song #2
---SongName: Cough Relief
---Writer: Jessie Townby
---Performer: Peter Bree
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:10:34
-Song #3
---SongName: Don't call me up
---Writer: Jessie Townby
---Performer: Georgia Winchurch
---AlbumProducer: Dobromir Slavchev
---Duration: 00:05:20
-Song #4
---SongName: Hydralazine Hydroch
---Writer: Sibelle Hanton
---Performer: Gennifer Lopez
---AlbumProducer: F.O.
---Duration: 00:09:54
-Song #5
---SongName: It is my life
---Writer: Stanford Daykin
---Performer: Alidia Horsewood
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:06:11
-Song #6
---SongName: La Vaquita
---Writer: Maitilde Sangar
---Performer: Zabrina Amor
---AlbumProducer: Georgi Milkov
---Duration: 00:08:32
-Song #7
---SongName: Levothyroxine Sodium
---Writer: Carol Mitchell
---Performer: Gennifer Lopez
---AlbumProducer: Evgeni Dimitrov
---Duration: 00:10:41
-Song #8
---SongName: Medique Diphen
---Writer: Rosalyn Humphris
---Performer: Gennifer Lopez
---AlbumProducer: F.O.
---Duration: 00:09:31
-Song #9
---SongName: Morning After
---Writer: Linnie Petrolli
---Performer: 
---AlbumProducer: Jana Karaivanova
---Duration: 00:04:23
-Song #10
---SongName: Quinapril
---Writer: Linnie Petrolli
---Performer: Gilligan Caney
---AlbumProducer: Georgi Milkov
---Duration: 00:10:31
-Song #11
---SongName: Ride it
---Writer: Lusa Steers
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:04:35
-Song #12
---SongName: Say It Right
---Writer: Petko Matisse
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:04:35
-Song #13
---SongName: Tiempo
---Writer: Norina Renihan
---Performer: Lula Zuan
---AlbumProducer: Georgi Milkov
---Duration: 00:05:35".Trim();

        Assert.That(actual, Is.EqualTo(expected).NoClip,
                    $"{nameof(StartUp.ExportSongsAboveDuration)} output is incorrect!");
    }