Пример #1
0
 public void SetUp()
 {
     main     = new MainBase();
     activity = NewMock <IActivity>();
     Stub.On(activity).GetProperty("Start").Will(Return.Value(DateTime.Parse("7:00:00")));
     Stub.On(activity).GetProperty("Duration").Will(Return.Value(TimeSpan.Parse("0:30:00")));
 }
Пример #2
0
 public void SetUp()
 {
     main = new MainBase();
     activity = NewMock<IActivity>();
     Stub.On(activity).GetProperty("Start").Will(Return.Value(DateTime.Parse("7:00:00")));
     Stub.On(activity).GetProperty("Duration").Will(Return.Value(TimeSpan.Parse("0:30:00")));
 }