Ejemplo n.º 1
0
        public void DocumentServicd_AddDocument_DocumentExists()
        {
            // Arrange
            var documentService = new DocumentService();

            // Act
            documentService.AddDocumentToDms(new MetadataItem(DateTime.MinValue, "Test")
            {
                FilePath = @"C:/temp/test.txt"
            });
            var filesCount = Directory.GetFiles(@"C:\Users\Gabriel\Desktop\Repo\1").Length;

            Directory.Delete(@"C:\Users\Gabriel\Desktop\Repo\1", true);

            // Assert
            Assert.That(filesCount, Is.EqualTo(2));
        }