public void RecursiveBlueprintDeletionTest() { usersStorage.Add(user1); usersStorage.Add(user2); usersStorage.Add(user3); BlueprintRepository blueprintsStorage = new BlueprintRepository(); IBlueprint blueprint1 = new Blueprint(12, 12, "Blueprint1"); blueprint1.Owner = user1; IBlueprint blueprint2 = new Blueprint(12, 12, "Blueprint2"); blueprint2.Owner = user2; IBlueprint blueprint3 = new Blueprint(12, 12, "Blueprint3"); blueprint3.Owner = user1; blueprintsStorage.Add(blueprint1); blueprintsStorage.Add(blueprint2); blueprintsStorage.Add(blueprint3); usersStorage.Delete(user1); int expectedResult = 1; int actualResult = blueprintsStorage.GetAll().Count; Assert.AreEqual(expectedResult, actualResult); }
public void AddBlueprintTest() { portfolio.Add(blueprint1); Assert.IsFalse(portfolio.IsEmpty()); }