public void NormalSingleSession() { var mtng = new dummyMeeting(); var sVM = new SessionUserControlViewModel(mtng.Sessions[0], Observable.Empty <ISession[]>(), true); var j = sVM.IsProperTitledSession; Assert.IsFalse(sVM.IsProperTitledSession); }
/// <summary> /// Get the meeting, allow a callback to mess with it. /// </summary> /// <returns></returns> public Task <IMeeting> GetMeeting() { return(Task.Factory.StartNew <IMeeting>(() => { var m = new dummyMeeting(); Count++; return _callback(m, Count); })); }
public void SessionTitle() { var mtng = new dummyMeeting(); (mtng.Sessions[0] as dummySession).Title = "a grand session"; var sVM = new SessionUserControlViewModel(mtng.Sessions[0], Observable.Empty <ISession[]>(), false); var j = sVM.Title; Assert.AreEqual("a grand session", sVM.Title); }
public void FakeSession() { var mtng = new dummyMeeting(); (mtng.Sessions[0] as dummySession).Title = "<ad-hoc session>"; var sVM = new SessionUserControlViewModel(mtng.Sessions[0], Observable.Empty <ISession[]>(), false); var j = sVM.IsProperTitledSession; Assert.IsFalse(sVM.IsProperTitledSession); }