public void Container_Is_Available_To_Send_Digest_In_Background() { var sendTask = new DigestSendTask(); YafContext.Current.ServiceLocator.Get<IInjectServices>().Inject(sendTask); sendTask.RunOnce(); }
public void Container_Is_Available_To_Send_Digest_In_Background() { using (new HttpSimulator("/", TestConfig.TestFilesDirectory).SimulateRequest()) { var sendTask = new DigestSendTask(); BoardContext.Current.ServiceLocator.Get <IInjectServices>().Inject(sendTask); sendTask.RunOnce(); } }