Пример #1
0
 public static void AssignUserToProjectTask(ApplicationUser user, TaskVlopper.Base.Model.Task task)
 {
     using (IUnityContainer container = UnityConfig.GetConfiguredContainer())
     {
         var taskLogic = container.Resolve <ITaskLogic>();
         taskLogic.AssignUserToProjectTask(task.ProjectID, task.ID, user.Email);
     }
 }
Пример #2
0
 public static void AddTestWorklog(bool isUserLogged, TaskVlopper.Base.Model.Task task)
 {
     using (IUnityContainer container = UnityConfig.GetConfiguredContainer())
     {
         var worklogLogic = container.Resolve <IWorklogLogic>();
         worklogLogic.HandleWorklogAdd(ModelsMocks.WorklogModelFirst, task.ProjectID, task.ID,
                                       isUserLogged ? ControllersMocks.LoggedUser : ControllersMocks.NotloggedUser);
     }
 }