public void CreateStoryShouldAddNewStory() { // Arrange var repository = new StoryRepository(); var expected = new Story { Name = "Story Test", ProjectName = "StoryMapper" }; // Act var createdActual = repository.Create(expected); var obtainedActual = repository.Single(story => story.Name == expected.Name && story.ProjectName == expected.ProjectName); // Assert Assert.IsNotNull(createdActual); Assert.IsNotNull(obtainedActual); Assert.AreEqual(expected.Name, createdActual.Name); Assert.AreEqual(expected.Name, obtainedActual.Name); Assert.AreEqual(expected.ProjectName, createdActual.ProjectName); Assert.AreEqual(expected.ProjectName, obtainedActual.ProjectName); }