Exemplo n.º 1
0
        public void CanSaveManagerTest()
        {
            Manager m = new Manager
            {
                FirstName = "Bob",
                LastName = "Jones",
                Designation = "Awesome"
            };

            UserRepo.UpsertEntity<Manager>(m);

            Assert.That(m.Id, Is.GreaterThan(0));
        }
Exemplo n.º 2
0
        public void CanSaveManagerWithRolesTest()
        {
            Manager m = new Manager
            {
                FirstName = "Hello",
                LastName = "There",
                Designation = "AnotherOne"
            };
            m.AddRole(new Role { Name = "Some role" });

            UserRepo.UpsertEntity<Manager>(m);

            Assert.That(m.Id, Is.GreaterThan(0));
        }