Exemplo n.º 1
0
 public void SaveUserTest()
 {
     var service = _container.Resolve<IService<User>>();
     var user = new User {AccountName = "YvesM"};
     var project = new Project {Name = "Test", Number = "1234"};
     user.Projects.Add(project);
     service.Save(user);
     Assert.IsNotNull(user);
 }
Exemplo n.º 2
0
        public void SaveProjectTest()
        {
            var service = _container.Resolve<IService<Project>>();
            var project = new Project { Number = "12345", Name = "Bla Blup"};
            service.Save(project);

            Assert.IsNotNull(project);
            Assert.IsTrue(project.Id>0);
        }