Exemplo n.º 1
0
        public void GetByIdHappyPathSubCutaneous()
        {
            var context = new RaptorContext();

            context.RunWithRollback((ctx) =>
            {
                var stylist = ContextPopulator.GetStylistLicensee(ctx);

                var sut = new StylistLicenseeDataService(ctx);

                var actual = sut.GetById(stylist.Id);

                actual.ShouldNotBeNull();
                actual.Id.ShouldEqual(stylist.Id);
            });
        }
Exemplo n.º 2
0
        public void GetAllStylistLicenseesHappyPathSubCutaneous()
        {
            var context = new RaptorContext();

            context.RunWithRollback((ctx) =>
            {
                ContextPopulator.GetStylistLicensee(ctx);
                ContextPopulator.GetStylistLicensee(ctx);

                var sut = new StylistLicenseeDataService(ctx);

                var actual = sut.GetAllStylistLicensees();

                actual.ShouldNotBeNull();
                actual.Count().ShouldBeGreaterThan(1);
            });
        }