Exemple #1
0
        /// <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"
            };
        }
Exemple #2
0
        //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();
        }
Exemple #3
0
 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;
 }
Exemple #5
0
 public UserController(IUserInterviewTrackerServices trackerServices)
 {
     _trackerServices = trackerServices;
 }