public async Task When_parsing_a_valid_user_id() { var id = Guid.NewGuid().ToString(); var context = BuildContext <UserID>(id); await _binder.BindModelAsync(context); context.Result.IsModelSet.ShouldBeTrue(); context.Result.Model.ShouldBe(UserID.Parse(id)); }
public void Changing_the_view_doesnt_affect_the_toggle() { var userID = UserID.Parse("123"); Toggle.AddTag(Editor, "wat"); var view = Toggle.ToView(); view.Tags.Remove("wat"); Toggle.Tags.ShouldBe(new[] { "wat" }); }
public StatisticViewTests() { _view = new StatisticView(); _user = UserID.Parse("editor"); _now = DateTime.Now; }
public ConditionStatisticViewTests() { _view = new ConditionStatisticView(); _user = UserID.Parse("user"); _now = DateTime.Now; }