Exemple #1
0
 public static void AddGiraModel(this IServiceCollection services, ICardsDataSource dataSource)
 {
     services.AddSingleton(dataSource);
     services.AddSingleton <ICalendar, Calendar>();
     services.AddSingleton <Burndown>();
     services.AddSingleton <Velocity>();
     services.AddSingleton <CardCycleTime>();
     services.AddSingleton <IProjectsRepository, ProjectsRepository>();
 }
Exemple #2
0
 public ProjectsRepository(ICalendar calendar, ICardsDataSource dataSource)
 {
     Calendar   = calendar;
     DataSource = dataSource;
 }