Ejemplo n.º 1
0
        public void GetNewCollectionPointIdTest()
        {
            // Arrange
            int expected = context.CollectionPoint.OrderByDescending(x => x.CollectionPointId).FirstOrDefault().CollectionPointId + 1;

            // Act
            var result = IdService.GetNewCollectionPointId(context);

            // Assert
            Assert.AreEqual(expected, result);
        }