public void StartTrackingNonGeneric() { Kernel.Arrange <IPersistentObjectResolver <Sample> >(resolver => resolver.LoadAndStartTracking(sample)).OccursOnce(); Service.StartTracking((object)sample); Kernel.AssertAll(); }
public void UnloadNonGeneric() { Kernel.Arrange <IPersistentObjectResolver <Sample> >(resolver => resolver.Unload(sample)).OccursOnce(); Service.Unload((object)sample); Kernel.AssertAll(); }