public void ThatAPackageCanBeFound()
        {
            var package = PackageServices.WithDto(PackageTestFixtures.GetAmpulDto()).Get();

            Assert.AreEqual(package,
                            PackageServices.Packages.Single(x => x.Name == package.Name));
        }
Esempio n. 2
0
        public void ThatPackageWithoutAbbreviationThrowsException()
        {
            var dto = PackageTestFixtures.GetAmpulDto();

            dto.Abbreviation = String.Empty;

            AssertCreateFails(dto);
        }
        public void ThatPackageCanBeFoundByName()
        {
            var package = PackageServices.WithDto(PackageTestFixtures.GetAmpulDto()).Get();

            Assert.AreEqual(package, PackageServices.GetByName(package.Name));
        }
        private static Package GetPackageWithoutShape()
        {
            var package = PackageServices.WithDto(PackageTestFixtures.GetAmpulDto()).Get();

            return(package);
        }