예제 #1
0
        public async Task GetReturnsContentNotNullAustin()
        {
            // Arrange
            var mockRepository = new Mock <IStatService>();

            mockRepository.Setup(x => x.GetAustinStatAsync())
            .ReturnsAsync(new AustinStatResult());

            var controller = new StatsController(mockRepository.Object);

            // Act
            var response = await controller.AustinStatsRaw();

            // Assert
            Assert.IsNotNull(response);
        }