示例#1
0
        public void WhenDbContextReturnsEntityInstance()
        {
            var result = new FakeEmployeeRepository().GetById("1");

            Assert.True(result.IsSucess);
        }
示例#2
0
        public void WhenDbContextReturnsNullResultsException()
        {
            var result = new FakeEmployeeRepository().GetById("2");

            Assert.True(result.IsFailure);
        }
示例#3
0
        public void WhenDbContextThrowsAnException()
        {
            var result = new FakeEmployeeRepository().GetById("e");

            Assert.True(result.IsFailure);
        }