コード例 #1
0
        public async Task GetUsersSampleByIDAsync_ShouldReturnUsersSample()
        {
            //arrage
            int id = 1;
            ProjectDBContext projectDBContext = new ProjectDBContext(options);
            ProjectRepoDB    projectRepoDB    = new ProjectRepoDB(projectDBContext);

            //act
            var result = await projectRepoDB.GetUsersSampleByIDAsync(id);

            //assert
            Assert.Equal(1, result.Id);
        }