Esempio n. 1
0
        public void VibesImplementation_AddVibeCheck_AddsToDb()
        {
            var context = new DansWebsiteContext();

            var newVibe = new Vibes {
                VibeLevel = "1"
            };



            context.AddVibeCheck(newVibe);
            Assert.Pass();
        }
Esempio n. 2
0
    private Color ChooseColor(Vibes vibe)
    {
        Color textColor;

        switch (vibe)
        {
        case Card.Vibes.Calm:
            textColor = new Color(12.0f / 255, 56.0f / 255, 54.0f / 255, 0);
            break;

        case Card.Vibes.Bubbly:
            textColor = new Color(46.0f / 255, 30.0f / 255, 64.0f / 255, 0);
            break;

        case Card.Vibes.Hype:
            textColor = new Color(76.0f / 255, 8.0f / 255, 44.0f / 255, 0);
            break;

        default:
            textColor = Color.clear;
            break;
        }
        return(textColor);
    }
Esempio n. 3
0
        public void AddVibeCheck([FromBody] Vibes vibe)
        {
            DansWebsiteContext context = new DansWebsiteContext();

            context.AddVibeCheck(vibe);
        }