public async Task GetItemFileFromServer() { var itemFile = await _fileRequestService.RequestFile(InitFileType.Item); _pubFileSaveService.SaveFile(PubFileNameConstants.PathToEIFFile, itemFile); _pubFileRepository.EIFFile = (EIFFile)itemFile; }
public void RequestFile_ResponsePacketHasInvalidHeader_ThrowsEmptyPacketReceivedException() { Mock.Get(_packetSendService).SetupReceivedPacketHasHeader(PacketFamily.Account, PacketAction.Accept); Assert.ThrowsAsync <EmptyPacketReceivedException>(async() => await _fileRequestService.RequestFile(InitFileType.Item)); }