Exemple #1
0
        /// <inheritdoc/>
        public async Task <Test> GetAsync(Guid id)
        {
            List <FileEntity.Test> tests = await RetrieveOrCreateTestsAsync();

            FileEntity.Test testEntity = tests.SingleOrDefault(x => x.Id == id);
            return(testEntity.MapToModel());
        }
        public void MapToModel_InputNull_ThrowsException()
        {
            // Arrange
            FileEntity.Test input = null;

            // Act
            Action action = () => input.MapToModel();

            // Assert
            action.Should().Throw <ArgumentNullException>();
        }