public void TestInitialize() { MockManager.Init(); CalendarSection section = new CalendarSection(); section.ProviderType = "ConfirmIt.PortalLib.DAL.SqlClient.SqlCalendarProvider, PortalLib"; using (RecordExpectations recorder = RecorderManager.StartRecording()) { recorder.ExpectAndReturn(Globals.Settings.Calendar, section ).RepeatAlways(); recorder.ExpectAndReturn(section.ConnectionString, "My connection string"); } }
public void TestInitialize() { MockManager.Init(); CalendarSection calenderSection = new CalendarSection(); calenderSection.CacheEnabled = false; WorkTimeSection workTimeSection = new WorkTimeSection(); workTimeSection.DefaultWorkTime = new TimeSpan(8, 30, 00); using (RecordExpectations recorder = RecorderManager.StartRecording()) { recorder.ExpectAndReturn(Globals.Settings.Calendar, calenderSection).RepeatAlways(); recorder.ExpectAndReturn(Globals.Settings.WorkTime, workTimeSection).RepeatAlways(); } }