Exemplo n.º 1
0
        private static IProteinBenchmarkService CreateBenchmarkServiceWithTwoSlotsAndProjects()
        {
            var benchmarkService = new ProteinBenchmarkService(new ProteinBenchmarkDataContainer());

            var slotIdentifier      = CreateSlotIdentifier("Test", 0);
            var benchmarkIdentifier = new ProteinBenchmarkIdentifier(12345);

            benchmarkService.Update(slotIdentifier, benchmarkIdentifier, Array.Empty <TimeSpan>());

            slotIdentifier      = CreateSlotIdentifier("Test", 1);
            benchmarkIdentifier = new ProteinBenchmarkIdentifier(23456);
            benchmarkService.Update(slotIdentifier, benchmarkIdentifier, Array.Empty <TimeSpan>());
            benchmarkIdentifier = new ProteinBenchmarkIdentifier(65432);
            benchmarkService.Update(slotIdentifier, benchmarkIdentifier, Array.Empty <TimeSpan>());

            return(benchmarkService);
        }
Exemplo n.º 2
0
        private static IProteinBenchmarkService CreateBenchmarkServiceWithOneSlotAndProject()
        {
            var benchmarkService    = new ProteinBenchmarkService(new ProteinBenchmarkDataContainer());
            var slotIdentifier      = CreateSlotIdentifier("Test", SlotIdentifier.NoSlotID);
            var benchmarkIdentifier = new ProteinBenchmarkIdentifier(12345);

            benchmarkService.Update(slotIdentifier, benchmarkIdentifier, Array.Empty <TimeSpan>());
            return(benchmarkService);
        }