public void DatabaseInitializationConstructorWithCollectionOfPeople() { var firstPerson = new Person(123, "First"); var secondPerson = new Person(345, "Second"); var collectionOfPeople = new IPerson[] { firstPerson, secondPerson }; this.database = new DatabasePeople(collectionOfPeople); Assert.AreEqual(2, this.database.Count, $"Constructor doesn't work with {typeof(IPerson)} as parameter"); }
public void DatabaseInitializeConstructorWithNullLeadsToEmptyDB() { Assert.DoesNotThrow(() => this.database = new DatabasePeople(null)); }
public void TestInitialization() { this.database = new DatabasePeople(); }