Пример #1
0
        public void Can_Check_Author_Exists(string authorId, bool expected)
        {
            // Arrange
            var id = authorId;

            if (authorId == "FirstID")
            {
                id = LookupRepo.GetEntities <Author>().FirstOrDefault()?.Id.ToString();
            }

            // Act
            var result = _authorManager.AuthorExists(id);

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