示例#1
0
        public void Repository_cannot_Remove_objects_not_valid_for_deletion()
        {
            FakeEntityObject item = new FakeEntityObject();
            FakeRepository   repo = new FakeRepository();

            repo.Remove(item);
        }
示例#2
0
        public void Repository_cannot_Save_objects_not_valid_for_storing()
        {
            FakeEntityObject item = new FakeEntityObject();
            FakeRepository   repo = new FakeRepository();

            repo.Update(item);
        }
示例#3
0
        public void Repository_cannot_Add_objects_not_valid_for_storing()
        {
            FakeEntityObject item = new FakeEntityObject();
            FakeRepository   repo = new FakeRepository();

            //var mock = new Mock<IRepository<FakeEntityObject>>();
            //var repo = mock.Object;
            repo.Add(item);
        }