예제 #1
0
    public void TestFinalRemoveAnOrganization()
    {
        var organization = new Organization();

        _context.Organizations.Add(organization);
        _context.SaveChanges();

        Assert.AreEqual(1, _context.Organizations.Count());

        _context.Organizations.Remove(organization);
        _context.SaveChangesWithoutSoftDelete();
        Assert.AreEqual(0, _context.Organizations.Count());
    }