Exemplo n.º 1
0
        public async Task CreateLinkBundleAsyncCreatesLinkBundleInDB()
        {
            // Arrange
            var newBundle = new LinkBundle {
                VanityUrl = "samplelink"
            };

            Assert.Equal(0, _sourceList.Count());

            // Act
            await _linksService.CreateLinkBundleAsync(newBundle);

            // Assert
            Assert.Equal(1, _sourceList.Count());
        }