public void Service_InsertGraphRangeCallRepository()
        {
            var rep = A.Fake<IRepositoryAsync<DummyEntity>>();
            var sut = new DummyService(rep);
            var entities = new DummyEntity[] { new DummyEntity(), new DummyEntity() };
            sut.InsertGraphRange(entities);

            A.CallTo(() => rep.InsertGraphRange(entities)).MustHaveHappened();
        }
        public void Service_DeleteObjectCallRepository()
        {
            var rep = A.Fake<IRepositoryAsync<DummyEntity>>();
            var sut = new DummyService(rep);
            var entity = new DummyEntity();
            sut.Delete(entity);

            A.CallTo(() => rep.Delete(entity)).MustHaveHappened();
        }
        public void Service_InsertOrUpdateGraphCallRepository()
        {
            var rep = A.Fake<IRepositoryAsync<DummyEntity>>();
            var sut = new DummyService(rep);
            var entity = new DummyEntity();
            sut.InsertOrUpdateGraph(entity);

            A.CallTo(() => rep.InsertOrUpdateGraph(entity)).MustHaveHappened();
        }