Created
March 16, 2012 20:59
-
-
Save brianium/2052652 to your computer and use it in GitHub Desktop.
simple ddd console app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using DMSSubscriberUpdate.Domain; | |
using DMSSubscriberUpdate.Infrastructure; | |
using DMSSubscriberUpdate.Domain.Services; | |
namespace DMSSubscriberUpdate | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<Subscriber> subscribers = SubscriberRepository.FindAll(); | |
foreach (Subscriber subscriber in subscribers) | |
{ | |
SubscriberRepository.Update(new SubscriberProcessor(subscriber).Process()); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment