public override void Context() { XmlService.ResetCalls(); FileSystem.ResetCalls(); HashProvider.ResetCalls(); Service = new FilesService(XmlService.Object,FileSystem.Object,HashProvider.Object); }
public override void Context() { HashProvider = new CryptoHashProvider(FileSystem); Service = new FilesService(new XmlService(FileSystem, HashProvider), FileSystem, HashProvider); }
public override void Context() { Service = new FilesService(new XmlService(FileSystem), FileSystem, new CrytpoHashProvider(FileSystem, CryptoHashProviderType.Md5)); }