Beispiel #1
0
        protected static MatchImport.ExcelMatch GetMatch()
        {
            var match = new MatchImport.ExcelMatch
            {
                MatchId               = Guid.NewGuid(),
                Navn                  = "Testing",
                StartTid              = DateTime.Today.AddDays(-1),
                SluttTid              = DateTime.Today.AddDays(1),
                GeoboxNWLatitude      = 51,
                GeoboxNWLongitude     = 11,
                GeoboxSELatitude      = 52,
                GeoboxSELongitude     = 12,
                DefaultPoengFordeling = "100,90,80",
                PrLagFelle            = 1,
                PrLagBombe            = 2
            };

            return(match);
        }
Beispiel #2
0
 protected void Importer(MatchImport.ExcelMatch match, List <Lag> lagListe = null, List <PostImport.ExcelPost> poster = null)
 {
     _excelWriter = new ExcelWriter();
     _excelWriter.SkrivTilExcel(match, lagListe, poster);
     Importer();
 }