public MyFitnessPalXMLWrapper(string ConfigFileName, int Days, IGraphWrapper graphWrapper)
 {
     config = new LoadConfig(ConfigFileName);
     loginDetails = (LoginDetails)config.GetContents(typeof(LoginDetails));
     cookieDetails = (CookieDetails)config.BinaryDeserialize(typeof(CookieDetails));
     login = new Login(loginDetails, cookieDetails);
     Loader = new XMLMyFitnessLoader(login);
     MyFitnesses = new MyFitnessList();
     this.graphWrapper = graphWrapper;
     this.Days = Days;
 }
 public XMLMyFitnessLoader(Login login)
 {
     _login=login;
 }