/// <summary> /// Makes it possible to access PlayedOnConnLogic in the Console /// </summary> /// <returns>Returns a PlayedONConnLogic instance</returns> public static PlayedOnConnLogic CreateRealLogic() { StreamingDatabaseEntities se = new StreamingDatabaseEntities(); PlayedOnConnRepository pocl = new PlayedOnConnRepository(se); return(new PlayedOnConnLogic(pocl)); }
/// <summary> /// Creates a NonCRUDLogic instance that can be used in the console to access the methods /// </summary> /// <returns>Returns a NonCRUDLogic instance</returns> public static NonCRUDLogic CreateRealLogic() { StreamingDatabaseEntities ent = new StreamingDatabaseEntities(); SongRepository sor = new SongRepository(ent); ServRepository ser = new ServRepository(ent); PlayedOnConnRepository pr = new PlayedOnConnRepository(ent); ListenerRepository lr = new ListenerRepository(ent); ArtistRepository ar = new ArtistRepository(ent); return(new NonCRUDLogic(sor, ser, pr, lr, ar)); }