Пример #1
0
        public void CreateTest()
        {
            var manger = new ProjectManager();
            var project = new Project { Id = Guid.NewGuid(), Name = "test" };

            var actual = manger.Save(project);
            Assert.IsTrue(actual);
        }
Пример #2
0
        public void GetTest()
        {
            var manger = new ProjectManager();
            var project = new Project { Id = Guid.NewGuid(), Name = "test" };
            manger.Save(project);

            var proj = manger.Get(project.Id);
            Assert.IsNotNull(proj);
        }
Пример #3
0
        public void GetAllTest()
        {
            var manger = new ProjectManager();
            var project = new Project { Id = Guid.NewGuid(), Name = "test" };
            manger.Save(project);

            var projects = manger.GetAll();

            Assert.IsNotNull(projects);
            Assert.IsTrue(projects.Count() > 0);
        }