Skip to content

Instantly share code, notes, and snippets.

@brianium
Created March 16, 2012 20:59
Show Gist options
  • Save brianium/2052652 to your computer and use it in GitHub Desktop.
Save brianium/2052652 to your computer and use it in GitHub Desktop.
simple ddd console app
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