예제 #1
0
        protected override void SetUp()
        {
            clock = NewMock<IClock>();
            incidentChangeListener = NewMock<IIncidentChangeListener>();

            incident = new Incident(clock, incidentChangeListener, "ID 1", 13, "Location", new DateTime(2009, 2, 1, 9, 30, 0), "Name", "Type",
                                    "Status", "Size", 150);
        }
예제 #2
0
        protected override void SetUp()
        {
            clock = NewMock <IClock>();
            incidentChangeListener = NewMock <IIncidentChangeListener>();

            incident = new Incident(clock, incidentChangeListener, "ID 1", 13, "Location", new DateTime(2009, 2, 1, 9, 30, 0), "Name", "Type",
                                    "Status", "Size", 150);
        }
예제 #3
0
 public Incident(IClock clock, IIncidentChangeListener changeListener, string incidentID, int region,
     string location, DateTime cfaIncidentTime, string name, string type, string status, string size,
     int appliances)
 {
     this.clock = clock;
     this.changeListener = changeListener;
     this.incidentID = incidentID;
     this.region = region;
     this.location = location;
     this.cfaIncidentTime = cfaIncidentTime;
     this.name = name;
     this.type = type;
     this.status = status;
     this.size = size;
     this.appliances = appliances;
 }
예제 #4
0
 public Incident(IClock clock, IIncidentChangeListener changeListener, string incidentID, int region,
                 string location, DateTime cfaIncidentTime, string name, string type, string status, string size,
                 int appliances)
 {
     this.clock           = clock;
     this.changeListener  = changeListener;
     this.incidentID      = incidentID;
     this.region          = region;
     this.location        = location;
     this.cfaIncidentTime = cfaIncidentTime;
     this.name            = name;
     this.type            = type;
     this.status          = status;
     this.size            = size;
     this.appliances      = appliances;
 }
예제 #5
0
 public IncidentFactory(IClock clock, IIncidentChangeListener incidentChangeListener)
 {
     this.clock = clock;
     this.incidentChangeListener = incidentChangeListener;
 }
예제 #6
0
 public IncidentFactory(IClock clock, IIncidentChangeListener incidentChangeListener)
 {
     this.clock = clock;
     this.incidentChangeListener = incidentChangeListener;
 }