Example #1
0
        public void TestGetFramePathByIdMethod()
        {
            var service   = new FramesService(framesRepo.Object, obituaryRepo.Object);
            var framePath = service.GetFramePathById("frame1Id");

            Assert.Equal("framePath1", framePath);
        }
Example #2
0
        public void TestShowAllFramesMethod()
        {
            var service     = new FramesService(framesRepo.Object, obituaryRepo.Object);
            var framesCount = service.ShowAllFrames().Count();

            Assert.Equal(2, framesCount);
        }
 public FramesController()
 {
     framesService = new FramesService();
     driveServices = new DriveServices();
 }