Example #1
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title          = Title,
                LocationId     = SelectedLocationId,
                Category       = Category,
                Description    = Description,
                CompanyName    = CompanyName,
                CompanyUrl     = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail   = CompanyEmail,
                PublishedDate  = DateTime.Now,
                IsRemote       = IsRemote,
                JoelTest       = new JoelTest
                {
                    HasSourceControl           = this.HasSourceControl,
                    HasOneStepBuilds           = this.HasOneStepBuilds,
                    HasDailyBuilds             = this.HasDailyBuilds,
                    HasBugDatabase             = this.HasBugDatabase,
                    HasBusFixedBeforeProceding = this.HasBusFixedBeforeProceding,
                    HasUpToDateSchedule        = this.HasUpToDateSchedule,
                    HasSpec             = this.HasSpec,
                    HasQuiteEnvironment = this.HasQuiteEnvironment,
                    HasBestTools        = this.HasBestTools,
                    HasTesters          = this.HasTesters,
                    HasWrittenTest      = this.HasWrittenTest,
                    HasHallwayTests     = this.HasHallwayTests
                }
            };

            return(entity);
        }
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title = Title,
                Category = Category,
                Description = Description,
                CompanyName = CompanyName,
                CompanyUrl = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail = CompanyEmail,
                PublishedDate = DateTime.Now,
                IsRemote = IsRemote
            };

            if (!string.IsNullOrWhiteSpace(LocationName) &&
                !string.IsNullOrWhiteSpace(LocationPlaceId))
            {
                entity.JobOpportunityLocation = new JobOpportunityLocation
                {
                    Latitude = LocationLatitude,
                    Longitude = LocationLongitude,
                    Name = LocationName,
                    PlaceId = LocationPlaceId
                };
            }

            return entity;
        }
Example #3
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title          = Title,
                Category       = Category,
                Description    = Description,
                CompanyName    = CompanyName,
                CompanyUrl     = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail   = CompanyEmail,
                PublishedDate  = DateTime.Now,
                IsRemote       = IsRemote
            };

            if (!string.IsNullOrWhiteSpace(LocationName) &&
                !string.IsNullOrWhiteSpace(LocationPlaceId))
            {
                entity.JobOpportunityLocation = new JobOpportunityLocation
                {
                    Latitude  = LocationLatitude,
                    Longitude = LocationLongitude,
                    Name      = LocationName,
                    PlaceId   = LocationPlaceId
                };
            }

            return(entity);
        }
Example #4
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Id             = Id,
                Title          = Title,
                Category       = Category,
                Description    = Description,
                CompanyName    = CompanyName,
                CompanyUrl     = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail   = CompanyEmail,
                PublishedDate  = DateTime.Now,
                IsRemote       = IsRemote,
                JobType        = JobType,
                HowToApply     = HowToApply,
                JoelTest       = new JoelTest
                {
                    HasSourceControl           = this.HasSourceControl,
                    HasOneStepBuilds           = this.HasOneStepBuilds,
                    HasDailyBuilds             = this.HasDailyBuilds,
                    HasBugDatabase             = this.HasBugDatabase,
                    HasBusFixedBeforeProceding = this.HasBusFixedBeforeProceding,
                    HasUpToDateSchedule        = this.HasUpToDateSchedule,
                    HasSpec             = this.HasSpec,
                    HasQuiteEnvironment = this.HasQuiteEnvironment,
                    HasBestTools        = this.HasBestTools,
                    HasTesters          = this.HasTesters,
                    HasWrittenTest      = this.HasWrittenTest,
                    HasHallwayTests     = this.HasHallwayTests
                }
            };

            if (!string.IsNullOrWhiteSpace(LocationName) &&
                !string.IsNullOrWhiteSpace(LocationPlaceId))
            {
                entity.JobOpportunityLocation = new JobOpportunityLocation
                {
                    Latitude  = LocationLatitude,
                    Longitude = LocationLongitude,
                    Name      = LocationName,
                    PlaceId   = LocationPlaceId
                };
            }

            return(entity);
        }
Example #5
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title          = Title,
                LocationId     = SelectedLocationId,
                Category       = Category,
                Description    = Description,
                CompanyName    = CompanyName,
                CompanyUrl     = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail   = CompanyEmail,
                PublishedDate  = DateTime.Now,
                IsRemote       = IsRemote
            };

            return(entity);
        }
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title = Title,
                LocationId = SelectedLocationId,
                Category = Category,
                Description = Description,
                CompanyName = CompanyName,
                CompanyUrl = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail = CompanyEmail,
                PublishedDate = DateTime.Now,
                IsRemote = IsRemote
            };

            return entity;
        }
Example #7
0
        public static Wizard FromEntity(Core.Domain.JobOpportunity entity)
        {
            var wizard = new Wizard()
            {
                Id             = entity.Id,
                Title          = entity.Title,
                Category       = entity.Category,
                Description    = entity.Description,
                CompanyName    = entity.CompanyName,
                CompanyUrl     = entity.CompanyUrl,
                CompanyLogoUrl = entity.CompanyLogoUrl,
                CompanyEmail   = entity.CompanyEmail,
                IsRemote       = entity.IsRemote,
                JobType        = entity.JobType,
                HowToApply     = entity.HowToApply,

                LocationLatitude  = entity.JobOpportunityLocation?.Latitude,
                LocationLongitude = entity.JobOpportunityLocation?.Longitude,
                LocationName      = entity.JobOpportunityLocation?.Name,
                LocationPlaceId   = entity.JobOpportunityLocation?.PlaceId
            };

            if (entity.JoelTest != null)
            {
                wizard.HasSourceControl           = entity.JoelTest.HasSourceControl;
                wizard.HasOneStepBuilds           = entity.JoelTest.HasOneStepBuilds;
                wizard.HasDailyBuilds             = entity.JoelTest.HasDailyBuilds;
                wizard.HasBugDatabase             = entity.JoelTest.HasBugDatabase;
                wizard.HasBusFixedBeforeProceding = entity.JoelTest.HasBusFixedBeforeProceding;
                wizard.HasUpToDateSchedule        = entity.JoelTest.HasUpToDateSchedule;
                wizard.HasSpec             = entity.JoelTest.HasSpec;
                wizard.HasQuiteEnvironment = entity.JoelTest.HasQuiteEnvironment;
                wizard.HasBestTools        = entity.JoelTest.HasBestTools;
                wizard.HasTesters          = entity.JoelTest.HasTesters;
                wizard.HasWrittenTest      = entity.JoelTest.HasWrittenTest;
                wizard.HasHallwayTests     = entity.JoelTest.HasHallwayTests;
            }

            return(wizard);
        }
Example #8
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Id = Id,
                Title = Title,
                Category = Category,
                Description = Description,
                CompanyName = CompanyName,
                CompanyUrl = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail = CompanyEmail,
                PublishedDate = DateTime.Now,
                IsRemote = IsRemote,
                JobType = JobType,
                HowToApply = HowToApply,
                JoelTest = new JoelTest
                {
                    HasSourceControl = this.HasSourceControl,
                    HasOneStepBuilds = this.HasOneStepBuilds,
                    HasDailyBuilds = this.HasDailyBuilds,
                    HasBugDatabase = this.HasBugDatabase,
                    HasBusFixedBeforeProceding = this.HasBusFixedBeforeProceding,
                    HasUpToDateSchedule = this.HasUpToDateSchedule,
                    HasSpec = this.HasSpec,
                    HasQuiteEnvironment = this.HasQuiteEnvironment,
                    HasBestTools = this.HasBestTools,
                    HasTesters = this.HasTesters,
                    HasWrittenTest = this.HasWrittenTest,
                    HasHallwayTests = this.HasHallwayTests
                }
            };

            if (!string.IsNullOrWhiteSpace(LocationName) &&
                !string.IsNullOrWhiteSpace(LocationPlaceId))
            {
                entity.JobOpportunityLocation = new JobOpportunityLocation
                {
                    Latitude = LocationLatitude,
                    Longitude = LocationLongitude,
                    Name = LocationName,
                    PlaceId = LocationPlaceId
                };
            }

            return entity;
        }
Example #9
0
        public Core.Domain.JobOpportunity ToEntity()
        {
            var entity = new Core.Domain.JobOpportunity
            {
                Title = Title,
                LocationId = SelectedLocationId,
                Category = Category,
                Description = Description,
                CompanyName = CompanyName,
                CompanyUrl = CompanyUrl,
                CompanyLogoUrl = CompanyLogoUrl,
                CompanyEmail = CompanyEmail,
                PublishedDate = DateTime.Now,
                IsRemote = IsRemote,
                JoelTest = new JoelTest
                {
                    HasSourceControl = this.HasSourceControl,
                    HasOneStepBuilds = this.HasOneStepBuilds,
                    HasDailyBuilds = this.HasDailyBuilds,
                    HasBugDatabase = this.HasBugDatabase,
                    HasBusFixedBeforeProceding = this.HasBusFixedBeforeProceding,
                    HasUpToDateSchedule = this.HasUpToDateSchedule,
                    HasSpec = this.HasSpec,
                    HasQuiteEnvironment = this.HasQuiteEnvironment,
                    HasBestTools = this.HasBestTools,
                    HasTesters = this.HasTesters,
                    HasWrittenTest = this.HasWrittenTest,
                    HasHallwayTests = this.HasHallwayTests
                }
            };

            return entity;
        }