public void Setup()
        {
            this.jobsService = MockRepository.GenerateMock <IJobsService>();

            this.jobController = new JobController(this.jobsService);

            this.jobViewModel = new JobsViewModel
            {
                Page = 1, Jobs = null, Location = "testLocation", Description = "testDescription", FullTime = "true"
            };

            jobList = new List <Job>();

            jobViewModel = new JobsViewModel
            {
                Jobs        = jobList,
                Description = "testDescription",
                Location    = "testLocation",
                FullTime    = "true",
                Page        = 1
            };

            jobTask = Task <IJobsViewModel> .Factory.StartNew(() => new JobsViewModel
                                                              { Page = 1, Jobs = null, Location = "model", Description = "testDescription", FullTime = "true" });
        }
예제 #2
0
        public void SetUp()
        {
            this.jobViewFactory = MockRepository.GenerateMock <IJobViewFactory>();
            this.jobsService    = new JobsService(this.jobViewFactory);

            jobList = new List <Job>();

            jobViewModel = new JobsViewModel
            {
                Jobs        = jobList,
                Description = "testDescription",
                Location    = "testLocation",
                FullTime    = "true",
                Page        = 1
            };
        }