public async Task DashboardItemCompare_Create_DoesCreate() { // Arrange var dashboardItemCompare = await DashboardHelpers.CreateDashboardItemCompare(DbContext); // Assert DashboardItemCompare dbDashboardItemCompare = DbContext.DashboardItemCompares.AsNoTracking().First(); List <DashboardItemCompare> dashboardItemCompares = DbContext.DashboardItemCompares.AsNoTracking().ToList(); Assert.NotNull(dbDashboardItemCompare); Assert.AreEqual(1, dashboardItemCompares.Count); Assert.AreEqual(dashboardItemCompare.Id, dbDashboardItemCompare.Id); Assert.AreEqual(1, dbDashboardItemCompare.Version); Assert.AreEqual(dashboardItemCompare.WorkflowState, dbDashboardItemCompare.WorkflowState); Assert.AreEqual(dashboardItemCompare.CreatedAt.ToString(CultureInfo.InvariantCulture), dbDashboardItemCompare.CreatedAt.ToString(CultureInfo.InvariantCulture)); Assert.AreEqual(dashboardItemCompare.CreatedByUserId, dbDashboardItemCompare.CreatedByUserId); Assert.AreEqual(dashboardItemCompare.UpdatedAt.ToString(), dbDashboardItemCompare.UpdatedAt.ToString()); Assert.AreEqual(dashboardItemCompare.UpdatedByUserId, dbDashboardItemCompare.UpdatedByUserId); Assert.AreEqual(dashboardItemCompare.Position, dbDashboardItemCompare.Position); Assert.AreEqual(dashboardItemCompare.LocationId, dbDashboardItemCompare.LocationId); Assert.AreEqual(dashboardItemCompare.TagId, dbDashboardItemCompare.TagId); Assert.AreEqual(dashboardItemCompare.DashboardItemId, dbDashboardItemCompare.DashboardItemId); }