Skip to content

Instantly share code, notes, and snippets.

@wickdninja
Created March 25, 2019 18:21
Show Gist options
  • Save wickdninja/35f96681627260c6ebe24d1eaa490245 to your computer and use it in GitHub Desktop.
Save wickdninja/35f96681627260c6ebe24d1eaa490245 to your computer and use it in GitHub Desktop.
Get Aggregate
[Test]
public void Get_Aggregates()
{
var ids = new List<string>
{
"GUID_HERE"
};
foreach (var id in ids)
{
using (var uow = UnitOfWork.Create())
{
var aggregate = Factory.GetById<TODO_TYPE_HERE>(new Guid(id));
// aggregatge.DoSomething();
//uow.Accept();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment