public CreateVideoHandlerTest() { _fakeServerRepository = new FakeServerRepository(_dataContextMock); _fakeVideoRepository = new FakeVideoRepository(_dataContextMock); _invalidCommand = new CreateVideoCommand(new Guid(), "", VideoMock.GetFakeInvalidVideo(), ""); var serverID = _dataContextMock.Servers.FirstOrDefault(); _validCommand = new CreateVideoCommand(serverID.Id, "Video 01", VideoMock.GetFakeValidVideo(), "c:"); }
public DownloadVideoHandlerTest() { _fakeServerRepository = new FakeServerRepository(_dataContextMock); _fakeVideoRepository = new FakeVideoRepository(_dataContextMock); _invalidCommand = new DownloadVideoCommand(new Guid(), new Guid()); _validCommandWithNotExistsId = new DownloadVideoCommand(Guid.NewGuid(), Guid.NewGuid()); var videoValid = _dataContextMock.Videos.FirstOrDefault(); _validCommand = new DownloadVideoCommand(videoValid.ServerId, videoValid.Id); }