public void SetUp() { _contianer = new RhinoAutoMocker<RecentActivities>(); _recentActivities = _contianer.ClassUnderTest; _contianer.Get<IRepository>() .Stub(x=>x.AllInstances<Entry>()) .Return(new List<Entry>().AsQueryable()); _recentActivities.Add(FIRST_ACTIVITY_NAME); _recentActivities.Add(SECOND_ACTIVITY_NAME); }
public void SetUp() { _container = new RhinoAutoMocker<RecentActivities>(); _systemUnderTest = _container.ClassUnderTest; _container.Get<IRepository>() .Stub(x=>x.AllInstances<Entry>()) .Return(new List<Entry>().AsQueryable()); _systemUnderTest.Add(EXISTING_ACTIVITY_NAME); _systemUnderTest.Add(SECOND_ACTIVITY_NAME); _systemUnderTest.Add(THIRD_ACTIVITY_NAME); }
public void SetUp() { _container = new RhinoAutoMocker<RecentActivities>(); _recentActivities = _container.ClassUnderTest; _container.Get<IRepository>() .Stub(x=>x.AllInstances<Entry>()) .Return(new List<Entry>().AsQueryable()); foreach(string activity in _activities) _recentActivities.Add(activity); }