示例#1
0
        private async void LoggOne(ProjectEntity project, TimeSpan time, string description)
        {
            TimeTrackerService service = new TimeTrackerService()
            {
                CommitRepository   = new CommitRepository(),
                ProjectRepository  = new ProjectRepository(),
                EmployeeRepository = new EmployeesRepository()
            };

            await service.LogHours(Employee, project, time, description);
        }
示例#2
0
        private async void LoggMultiple()
        {
            TimeTrackerService service = new TimeTrackerService()
            {
                CommitRepository   = new CommitRepository(),
                ProjectRepository  = new ProjectRepository(),
                EmployeeRepository = new EmployeesRepository()
            };

            await service.LogHours(LoggedProjects, Commits);
        }