public void SubmitAnOrder_OppposePublicEndeavour()
        {
            IApiFulfillment impl = new FulfilmentImpl(new GameDataStub());
            List <GameLogicInterfaces.Models.Endeavour> publicEffort = impl.GetPublicEndeavours();

            SubmitOrdersRequestModel orm = new SubmitOrdersRequestModel()
            {
                Orders = new List <OrderRequestModel>()
                {
                    new OpposeEndeavorOrderRequestModel()
                    {
                        IdToOppose         = publicEffort[0].Id,
                        Name               = "Hinder the Sabbat cover-up",
                        MethodOfOpposition = "Pass the information I have to the media",
                        Assets             = new List <string>(),
                        Actors             = new List <string>()
                    }
                }
            };
            List <Order> actual = impl.SubmitOrders(orm, MR_CHARACTER_FIRST_ID);

            Assert.NotNull(actual);
            Assert.Single(actual);
            Assert.NotNull(actual[0].Id);
            Assert.Equal("Hinder the Sabbat cover-up", actual[0].Name);
        }
        public void SubmitAnOrder_SupportPublicEndeavour()
        {
            IApiFulfillment impl = new FulfilmentImpl(new GameDataStub());
            List <GameLogicInterfaces.Models.Endeavour> publicEffort = impl.GetPublicEndeavours();

            SubmitOrdersRequestModel orm = new SubmitOrdersRequestModel()
            {
                Orders = new List <OrderRequestModel>()
                {
                    new SupportEndeavorOrderRequestModel()
                    {
                        IdToSupport     = publicEffort[0].Id,
                        Name            = "Help with the Sabbat cover-up",
                        MethodOfSupport = "Be there in person to help with mental disciplines",
                        Assets          = new List <string>(),
                        Actors          = new List <string>()
                    }
                }
            };
            List <Order> actual = impl.SubmitOrders(orm, MS_CHARACTER_SECOND_ID);

            Assert.NotNull(actual);
            Assert.Single(actual);
            Assert.NotNull(actual[0].Id);
            Assert.Equal("Help with the Sabbat cover-up", actual[0].Name);
        }
        public void ReturnsEndeavours()
        {
            IApiFulfillment impl = new FulfilmentImpl(new GameDataStub());
            List <GameLogicInterfaces.Models.Endeavour> actual = impl.GetPublicEndeavours();

            Assert.NotNull(actual);
            Assert.NotEmpty(actual);
        }
        public void EndeavoursArePopulated()
        {
            IApiFulfillment impl = new FulfilmentImpl(new GameDataStub());
            List <GameLogicInterfaces.Models.Endeavour> actual = impl.GetPublicEndeavours();

            GameLogicInterfaces.Models.Endeavour e = actual[0];
            Assert.NotNull(e.Id);
            Assert.NotNull(e.Name);
            Assert.NotNull(e.Result);
            Assert.NotNull(e.Description);
            Assert.True(e.EffortEarnedSoFar <= e.EffortRequired);
        }
        public void ReturnsOnlyPublicEndeavours()
        {
            IApiFulfillment impl = new FulfilmentImpl(new GameDataStub());
            List <GameLogicInterfaces.Models.Endeavour> actual = impl.GetPublicEndeavours();

            Assert.Single(actual);
            GameLogicInterfaces.Models.Endeavour e = actual[0];
            Assert.Equal("6bcdb901-dab3-4091-a5c9-000000000070", e.Id);
            Assert.Equal("Test Public Endeavour", e.Name);
            Assert.Equal("The recent sabbat incursion is covered up", e.Result);
            Assert.Equal("Exists to test public endeavours such as calls to arms, cover ups, or public works projects.", e.Description);
            Assert.Equal <uint>(0, e.EffortEarnedSoFar);
            Assert.Equal <uint>(100, e.EffortRequired);
        }