Exemplo n.º 1
0
        public async Task GetAsyncByIdShouldSucceed()
        {
            var item1 = await _mockRepo.GetAsync(_mockDocumentWithId.Id);

            var item2 = await _mockRepo.GetAsync("xyz");

            Assert.NotNull(item1);
            Assert.Equal(_mockDocumentWithId.Id, item1.Id);
            Assert.Equal(_mockDocumentWithId.Name, item1.Name);
            Assert.Equal(_mockDocumentWithId.Value, item1.Value);
            Assert.Equal(_mockDocumentWithId.IsActive, item1.IsActive);

            Assert.Null(item2);
        }