Ejemplo n.º 1
0
        public async Task GetDesignedComputersAsync_NoErrorsWhileQueryingDatabase_ReturnsResultWithSuccess()
        {
            //Arrange
            //Act
            var result = await _service.GetDesignedComputersAsync();

            //Assert
            Assert.NotNull(result);
            Assert.True(result.IsSuccess);
            Assert.Null(result.Exception);
            Assert.NotNull(result.Output);
            Assert.True(result.Output.Count() == 2);
            Assert.True(result.Output.ToList()[0] == _computer1);
            Assert.True(result.Output.ToList()[1] == _computer3);
            Assert.True(_includes.Count == 0);
        }