Ejemplo n.º 1
0
 public static WasteCollection CreateCollection(Disposer disposer, WasteContainer wasteContainer, double desiredState, double actualState, double desiredPrice, double actualPrice,
                                                DateTime scheduledDate)
 {
     return(new WasteCollection()
     {
         ActualState = actualState,
         DesiredState = desiredState,
         Disposer = disposer,
         Container = wasteContainer,
         ScheduledDate = scheduledDate,
         DesiredPrice = desiredPrice,
         ActualPrice = actualPrice,
         GenerationDate = DateTime.Now
     });
 }
Ejemplo n.º 2
0
        public static WasteContainer CreateWasteContainer(string name, string barcode, double size, MapPosition mapPosition)
        {
            var wc = new WasteContainer
            {
                Name       = name,
                Barcode    = barcode,
                Size       = size,
                WasteTypes = new Collection <WasteType>
                {
                    new WasteType
                    {
                        AvvId = m_Random.Next(1, 940)
                    }
                },
                MapPosition = mapPosition
            };

            return(wc);
        }
Ejemplo n.º 3
0
        public static FillLevelReading CreateFillLevelReading(DateTime dueDateBegin, DateTime dueDateEnd, ResponsibleSubject appointmentResponsibleSubject, WasteContainer readingContainer, Series series)
        {
            var dueDateAppointment = AppointmentModelFactory.CreateAppointment(dueDateBegin, dueDateEnd, series.IsAllDay);

            return(new FillLevelReading
            {
                AppointmentResponsibleSubject = appointmentResponsibleSubject,
                DueDate = dueDateAppointment,
                ReadingContainer = readingContainer,
                RelatedSeries = series
            });
        }