コード例 #1
0
        public void CheckIfHasInformationTest()
        {
            var mockRepository = new Mock <IDeletableEntityRepository <UserInfo> >();

            mockRepository.Setup(x => x.All()).Returns(this.GetUserInfoData());

            var service = new UserInfoService(mockRepository.Object);

            var check = service.CheckIfHasInformation("1");

            Assert.True(check);
        }