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); }
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); }