public void SetUp() { gateway = new ClassYamlGateway(ClassYamlFile.ParseYaml()); var classes = gateway.All(); Fighter = classes.First(x => x.Name == "Fighter"); Monk = classes.First(x => x.Name == "Monk"); Wizard = classes.First(x => x.Name == "Wizard"); }
public ClassTests() { var yaml = ClassYamlFile.ParseYaml(); foreach (var node in yaml.Children) { var cls = new Class(node); if (cls.Name == "Fighter") { Fighter = cls; } else if (cls.Name == "Monk") { Monk = cls; } else if (cls.Name == "Wizard") { Wizard = cls; } } }