Пример #1
0
        public void WhenDeletingUserThenLoginShouldAlsoBeDeleted()
        {
            var person = new PersonBuilder(this.Session).WithUserName("user").Build();

            this.Session.Derive();

            var login = new LoginBuilder(this.Session).WithProvider("MyProvider").WithKey("XXXYYYZZZ").Build();

            person.AddLogin(login);

            this.Session.Derive();

            person.Delete();

            this.Session.Derive();

            Assert.True(login.Strategy.IsDeleted);
        }