public void Debug_happy_path_for_dev_with_moq() { var lst = GetDummyMassCommunications(); var m = new Mock <IRepository>(); m.Setup(x => x.MassCommunicationRepository .GetUnprocessedMassCommunications()) .Returns(lst); m.Setup(x => x.MassCommunicationRepository .UpdateStatuses(null)); m.Setup(x => x.RecipientRepository .UpdateStatuses(new List <Recipient>())); m.Setup(x => x.LogRepository .Add(null)); var c = GetTestContainer(); var svc = new SpamEngine(m.Object, c); svc.ProcessAvailableMassComms(); }
public void Full_run() { var repository = GetRepository(); var svc = new SpamEngine(repository); svc.ProcessAvailableMassComms(); }