public void PrepareBetGroup_WithMissingGroupId_ShoudReturnNull() { var service = new BetService(this.dbContext, null); var result = service.PrepareBetGroup(1); Assert.IsNull(result); }
public void PrepareBetGroup_WithExistingGroupId_ShoudReturnModel() { var group = new Group(); this.dbContext.Groups.Add(group); this.dbContext.SaveChanges(); var service = new BetService(this.dbContext, null); var result = service.PrepareBetGroup(group.Id); Assert.IsNotNull(result); }