public void TestRetrieveMyCollection() { //arrange string email = "*****@*****.**"; const int expectedResult = 3; //act int actualResult = 3; List <Collection> MyCollection = collectionAccessor.RetrieveMyCollection(email); actualResult = MyCollection.Count; //assert Assert.AreEqual(expectedResult, actualResult); }
/// <summary> /// Jory A. Wernette /// Created: 2021/05/10 /// /// Selects the Collection records Currently in the Database under a certain email /// </summary> /// /// <param name="email"> The name of a Player</param> /// <exception>No Collection Found</exception> /// <returns>List of Collection objects</returns> public List <Collection> RetrieveMyCollection(string email) { List <Collection> collection = null; try { collection = collectionAccessor.RetrieveMyCollection(email); } catch (Exception ex) { throw new ApplicationException("Collection Not Available.", ex); } return(collection); }