Пример #1
0
        public async void GetSoldier()
        {
            SoldierMookup.Start();
            var unit = await SoldierDomain.Instance.GetSoldier(1);

            Assert.Equal(1, unit.IdEfetivo);
        }
Пример #2
0
        public async void AddSoldier()
        {
            EfetivoModel model = await SoldierMookup.Add("Lauro de Freitas", -3);

            var resultado = await SoldierDomain.Instance.AddSoldier(model);

            Assert.Equal(model.IdEfetivo, resultado.IdEfetivo);
        }
Пример #3
0
        public static async void Start()
        {
            await SoldierDomain.Instance.AddSoldier(await SoldierMookup.Add("Savastane", 1));

            await SoldierDomain.Instance.AddSoldier(await SoldierMookup.Add("Yoseph", 2));
        }