public void DaoRepositoryCreateShouldSetId() { DaoRepository repo = GetTestDaoRepository(); TestContainer toCreate = new TestContainer(); Expect.AreEqual(0, toCreate.Id); string testName = "Test Name".RandomLetters(5); toCreate.Name = testName; toCreate.BirthDay = DateTime.Now.Subtract(new TimeSpan(7, 0, 0, 0)); toCreate = repo.Create(toCreate); Expect.IsGreaterThan(toCreate.Id, 0); OutLineFormat("{0} passed", ConsoleColor.Green, repo.GetType().Name); }