I'm trying out a new Live Writer code formatting add in. I've had mixed results with the others I've used. It seems I can't find one that is:
Lets see how the Insert from Visual Studio addin works...
[TestFixture] public class UnitOfWorkTests { [Test] public void Should_return_same_instance() { var c = new Customer { Address = new Address(), CustomerID = 1, Name = "Sneal" }; UnitOfWork uow = new UnitOfWork(new StubDataStore()); uow.Save(c); Assert.AreSame(c, uow.Single(new Customer { CustomerID = 1 })); } [Test] public void Can_save_instance() { var c = new Customer { Address = new Address(), CustomerID = 1, Name = "Sneal" }; UnitOfWork uow = new UnitOfWork(new StubDataStore()); uow.Save(c); } }
If nothing else, at least it looks pretty from Live Writer. Lets see when it gets out in the wild...
Powered by: newtelligence dasBlog 2.1.8102.813
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Shawn Neal
E-mail