Beispiel #1
0
        public void GivenIHaveACompanyIWishToManage()
        {
            // Get the last company created, sorted by creation date
            IEnumerable <Company> items1 = new RestCall <List <Company> >(Method.GET, context.Get <string>("url"), context.Get <string>("companyResource")).Data();
            Company latest = items1.Aggregate((i1, i2) => i1.id > i2.id ? i1 : i2);

            context["company"] = latest;
            Logger.Debug($"Managing Company: {latest.companyName} [id: {latest.id}]");
        }