Beispiel #1
0
        public async Task Unsubscribe_All_Should_Work()
        {
            var resp = await _membership.UnsubscribeAllAsync();

            resp.NonMembers.Should().BeEmpty();
            resp.Unsubscribed.Should().BeEquivalentTo(_emails);
            _membership.EmailList.Should().BeEmpty();
        }
Beispiel #2
0
        static MembershipTests()
        {
            _emails = File.ReadAllLines("emails.txt").ToList();
            var list = new TestList();

            _membership = list.Membership;
            var deleteTask = _membership.UnsubscribeAllAsync();

            Task.WaitAll(deleteTask);
        }