示例#1
0
        public void Delete_WhenRepositoryIsNull_ThrowsArgumentNullException <TKey>(TKey defaultKey)
        {
            // Arrange & Act & Assert
            var exception = Assert.Throws <ArgumentNullException>(
                () => RepositoryExtensions.Delete <IEntity <TKey>, TKey>(null, defaultKey)
                );

            Assert.Equal("repository", exception.ParamName);
        }