예제 #1
0
        public async Task GetAsync_WillReturnNull_WhenNotExists(int iteration)
        {
            // Arrange
            sut = new MoamrathRepository(_db);

            // Act
            Moamrath result = await sut.GetAsync(Guid.NewGuid());

            // Assert
            Assert.Null(result);
        }
예제 #2
0
        public async Task GetAsync_WillReturnTheCorrectValue_WhenExists(string id)
        {
            // Arrange
            sut = new MoamrathRepository(_db);

            // Act
            Moamrath result = await sut.GetAsync(Guid.Parse(id));

            // Assert
            Assert.NotNull(result);
            Assert.Equal(Guid.Parse(id), result.Id);
        }