public int AllParametersConstructor_RegularArguments_IdNotAutoAssigned(int id) { CollectionDescription description = null; CollectionDescription.ResetStaticClassID(); Dataset set = Dataset.SET1; var collection = new Mock <IHistoricalCollection>().Object; description = new CollectionDescription(id, set, collection); return(description.ID); }
public int DefaultConstructor_MultipleObjectCreation_IdCorrect(int numberOfObjects) { CollectionDescription description = null; CollectionDescription.ResetStaticClassID(); for (int i = 0; i < numberOfObjects; i++) { description = new CollectionDescription(); } return(description.ID); }
public int ParameterConstructor_MultipleObjectCreation_IdCorrect(int numberOfObjects) { CollectionDescription description = null; CollectionDescription.ResetStaticClassID(); Dataset set = Dataset.SET1; var collection = new Mock <IHistoricalCollection>().Object; for (int i = 0; i < numberOfObjects; i++) { description = new CollectionDescription(set, collection); } return(description.ID); }