示例#1
0
        public SaveWhingeSteps()
        {
            ApplicationContext = ScenarioContext.Current.Get <WhingePoolApplicationContext>("ApplicationContext");
            Assert.IsNotNull(ApplicationContext);

            WhingeService     = new WhingeService(ApplicationContext);
            WhingePoolService = new WhingePoolService(ApplicationContext);
        }
示例#2
0
        public void WhenAWhingeIsSaved(Table table)
        {
            try
            {
                var whinge = table.CreateInstance <WhingeEntity>();
                whinge.Whinger = ((WhingerEntity)ScenarioContext.Current["CurrentWhinger"]).TwitterHandle;

                WhingeService.Save(whinge);
            }
            catch (Exception exception)
            {
                ThrownException = exception;
            }
        }
示例#3
0
        public void Whinge(WhingeEntity whinge)
        {
            var service = new WhingeService(ApplicationContext);

            service.Save(whinge);
        }