This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod order; | |
pub mod asset; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Deserialize}; | |
#[derive(Deserialize, Debug)] | |
pub struct Order { | |
pub result: Vec<TheResult>, | |
} | |
#[derive(Deserialize, Debug)] | |
pub struct TheResult { | |
pub timestamp: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Deserialize}; | |
#[derive(Deserialize, Debug)] | |
pub struct Asset { | |
pub metadata: Metadata, | |
} | |
#[derive(Deserialize, Debug)] | |
pub struct Metadata { | |
pub name: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "illuvium-land" | |
version = "0.1.0" | |
edition = "2021" | |
[[bin]] | |
name = "illuvium-land-runner" | |
path = "src/main.rs" | |
[dependencies] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
pipeline { | |
parameters { | |
choice(name: 'ENV', choices: ["test", "prod"], description: 'AWS account to execute in, default test') | |
} | |
options { | |
disableConcurrentBuilds() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Env: test | |
InstanceClass: db.t4g.micro | |
VPCSecurityGroups: sg-123,sg-456 | |
Subnets: subnet-1,subnet-2,subnet-3 | |
SecretName: /Secret/Manager/name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Env: prod | |
InstanceClass: db.m6g.large | |
VPCSecurityGroups: sg-123,sg-456 | |
Subnets: subnet-1,subnet-2,subnet-3 | |
SecretName: /Secret/Manager/name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Postgres Database stack | |
Parameters: | |
Env: | |
Description: Environment tag | |
Type: String | |
AllowedValues: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LetterControlTest | |
{ | |
... | |
[UnityTest] | |
public IEnumerator WhenChangeColorControlToGreenThenItIsChanged() | |
{ | |
var colorToChange = ColorCollection.Green; | |
_letterControl.ChangeColorControl(colorToChange); | |
yield return new WaitForSeconds(0.15f * 11f); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LetterControlTest | |
{ | |
... | |
[Test] | |
public void WhenGetLetterIsCalledValueIsReturned() | |
{ | |
const string letter = "w"; | |
_text.text = letter; | |
Assert.AreEqual(letter, _letterControl.GetLetter()); | |
} |