public void GetActions_GivenNothing_ExpectActions() { var environment = new ExecutionContext(); var sut = new ActionsProvider(environment); var actions = sut.GetActions(); var actionNames = actions.Select(a => a.Name).ToList(); CollectionAssert.Contains(actionNames, "LaunchUrl"); }
public void EmptyPortfolio() { var actions = _provider.GetActions( new Portfolio(0.Rubles()), new AssetAllocation( new AssetPortion("AGG", 0.45M), new AssetPortion("VTT", 0.55M) ), Prices ); Assert.NotNull(actions); Assert.Equal(0, actions.Count); }