public void GetActiveTypes() { typeRepositoryInMemory.Add(brokenContainer); typeRepositoryInMemory.Add(brokenLight); typeRepositoryInMemory.SaveChanges(); typeRepositoryInMemory.SoftDelete(brokenContainer); typeRepositoryInMemory.SaveChanges(); List <Type> types = (List <Type>)typeRepositoryInMemory.GetActiveTypes().ToList(); Assert.AreEqual(1, types.Count); }