Ejemplo n.º 1
0
 /// <exception cref="System.Exception"></exception>
 protected override void Store()
 {
     Project project = new PrioritizedProject("db4o", Priority);
     project.LogWorkDone(new UnitOfWork("ta kick-off", new DateTime(1000), new DateTime
         (2000)));
     Store(project);
 }
        /// <exception cref="System.Exception"></exception>
        protected override void Store()
        {
            Project project = new PrioritizedProject("db4o", Priority);

            project.LogWorkDone(new UnitOfWork("ta kick-off", new DateTime(1000), new DateTime
                                                   (2000)));
            Store(project);
        }
        public virtual void Test()
        {
            PrioritizedProject project = (PrioritizedProject)((Project)RetrieveOnlyInstance(typeof(
                                                                                                Project)));

            Assert.AreEqual(Priority, project.GetPriority());
            // Project.totalTimeSpent needs the UnitOfWork objects to be activated
            Assert.AreEqual(1000, project.TotalTimeSpent());
        }