コード例 #1
0
        public async Task GetItemFileFromServer()
        {
            var itemFile = await _fileRequestService.RequestFile(InitFileType.Item);

            _pubFileSaveService.SaveFile(PubFileNameConstants.PathToEIFFile, itemFile);
            _pubFileRepository.EIFFile = (EIFFile)itemFile;
        }
コード例 #2
0
 public void RequestFile_ResponsePacketHasInvalidHeader_ThrowsEmptyPacketReceivedException()
 {
     Mock.Get(_packetSendService).SetupReceivedPacketHasHeader(PacketFamily.Account, PacketAction.Accept);
     Assert.ThrowsAsync <EmptyPacketReceivedException>(async() => await _fileRequestService.RequestFile(InitFileType.Item));
 }