public void IsSatisfiedBy_ExistsPlatform_True() { Stubs.Initialize(); Stubs.PlatformRepository.Add(new Platform()); Stubs.UnitOfWork.Commit(); var target = new PlatformExistsSpecification(); Assert.IsTrue(target.IsSatisfiedBy(new Platform(1))); }
public void IsSatisfiedBy_NonExistsPlatform_False() { var target = new PlatformExistsSpecification(); Assert.IsFalse(target.IsSatisfiedBy(new Platform())); }