private void AssertUpdated(DeployProjectBranch result, DeployProjectBranch original, string newBranchName, string newUserName, IProjectRepository sut) { Assert.IsNotNull(result); Assert.AreEqual(original.Id, result.Id); Assert.AreEqual(original.ProjectId, result.ProjectId); Assert.AreEqual(newBranchName, result.BranchName); Assert.AreEqual(original.CreatedByUserName, result.CreatedByUserName); AssertDateEqual(original.CreatedDateTimeUtc, result.CreatedDateTimeUtc); Assert.AreEqual(newUserName, result.UpdatedByUserName); AssertIsRecent(result.UpdatedDateTimeUtc); var dbItem = sut.GetBranch(result.Id, result.ProjectId); AssertHelpers.AssertBranch(result, dbItem); }