/// <summary> /// Injecting service object into Test class constructor /// </summary> public FuctionalTests() { _interviewTS = new InterviewTrackerServices(service.Object); _interviewUserTS = new UserInterviewTrackerServices(serviceUser.Object); _user = new ApplicationUser() { UserId = "5f0ec59dce04c32fb4d3160a", FirstName = "Name1", LastName = "Last1", Email = "*****@*****.**", ReportingTo = "Reportingto", UserTypes = UserType.Developer, Stat = Status.Locked, MobileNumber = 9631438113 }; _interview = new Interview() { InterviewId = "5f10259f587fb74450a61c77", InterviewName = "Name1", Interviewer = "Interviewer-1", InterviewUser = "******", UserSkills = ".net", InterviewDate = DateTime.Now, InterviewTime = DateTime.UtcNow, InterViewsStatus = InterviewStatus.Done, TInterViews = TechnicalInterviewStatus.Pass, Remark = "OK" }; }
//private readonly HttpClient _clint; public BoundaryTest() { _interviewTS = new InterviewTrackerServices(service.Object); _interviewUserTS = new UserInterviewTrackerServices(serviceUser.Object); _user = new ApplicationUser() { UserId = 1, FirstName = "Name1", LastName = "Last1", Email = "*****@*****.**", ReportingTo = "Reportingto", UserTypes = UserType.Developer, Stat = Status.Locked, MobileNumber = 9631438113 }; _interview = new Interview() { InterviewId = 1, InterviewName = "Name1", Interviewer = "Interviewer-1", InterviewUser = "******", UserSkills = ".net", InterviewDate = DateTime.Now, InterviewTime = DateTime.UtcNow, InterViewsStatus = InterviewStatus.Done, TInterViews = TechnicalInterviewStatus.Pass, Remark = "OK" }; //var server = new TestServer(new WebHostBuilder().UseEnvironment("").UseStartup<Startup>()); //_clint = server.CreateClient(); }
public DashboardController(IInterviewTrackerServices interviewTrackerServices, IUserInterviewTrackerServices userInterviewTrackerServices) { _interviewTS = interviewTrackerServices; _userTS = userInterviewTrackerServices; }
/// <summary> /// injecting IUserInterviewTrackerServices in consructor to access all methods /// </summary> public UserController(IUserInterviewTrackerServices userInterviewTrackerServices) { _userInterviewTS = userInterviewTrackerServices; }
public UserController(IUserInterviewTrackerServices trackerServices) { _trackerServices = trackerServices; }