public void Close() { _dac.Close(); var checksumWriter = new ModelChecksumWriter(_dacpacPath); checksumWriter.FixChecksum(); }
public void Can_Write_Correct_Checksum() { var dacpac = new DacHacXml(".\\Test.dacpac"); var stream = dacpac.GetStream("Model.xml"); var checksum = HashAlgorithm.Create("System.Security.Cryptography.SHA256CryptoServiceProvider").ComputeHash(stream); dacpac.Close(); var writer = new ModelChecksumWriter(".\\Test.dacpac"); writer.FixChecksum(); //assert wtf?? }